mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-23 11:17:54 +08:00
supervisor framework and some pending test
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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) ->
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user