supervisor framework and some pending test

This commit is contained in:
jysperm
2014-11-06 02:49:17 +08:00
parent 672b4b3285
commit 992a1f8eb8
3 changed files with 37 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ module.exports = pluggable.createHelpers exports =
type: 'service'
dependencies: ['linux']
supervisor = require './supervisor'
exports.registerHook 'view.panel.scripts',
path: '/plugin/linux/script/panel.css'
@@ -14,5 +16,6 @@ exports.registerHook 'view.panel.widgets',
exports.registerServiceHook 'disable',
filter: (req, callback) ->
supervisor.removePrograms req.account, callback
app.express.use '/plugin/supervisor', require './router'

View File

@@ -0,0 +1,13 @@
exports.removePrograms = (account, callback) ->
exports.programSummary = (program) ->
exports.updateProgram = (account, program, callback) ->
exports.writeConfig = (account, program, callback) ->
exports.removeConfig = (account, program, callback) ->
exports.programControl = (account, program, action, callback) ->
exports.programStatus = (callback) ->

View File

@@ -5,3 +5,24 @@ describe 'plugin/supervisor', ->
it 'GET program_config'
it 'POST program_control'
describe 'programSummary', ->
it 'pending'
describe 'writeConfig', ->
it 'pending'
describe 'programStatus', ->
it 'pending'
describe 'updateProgram', ->
it 'pending'
describe 'programControl', ->
it 'pending'
describe 'removeConfig', ->
it 'pending'
describe 'removePrograms', ->
it 'pending'