diff --git a/CHANGES.md b/CHANGES.md old mode 100644 new mode 100755 diff --git a/GUI.png b/GUI.png old mode 100644 new mode 100755 diff --git a/package/server/api.js b/package/server/api.js index 799df9f..b0c2a9b 100755 --- a/package/server/api.js +++ b/package/server/api.js @@ -67,11 +67,11 @@ Jobs.run = function () { // Update / manage a job even though it has not run -Jobs.manage = function () { +Jobs.find = function () { check(arguments[0], String) if (Utilities.registry.data[arguments[0]]) { - return Actions.manage.apply(null, arguments); + return Actions.find.apply(null, arguments); } else { Utilities.logger("invalid job name: " + arguments[0] || "not specified"); return false; diff --git a/package/server/imports/actions/manage/index.js b/package/server/imports/actions/find/index.js similarity index 91% rename from package/server/imports/actions/manage/index.js rename to package/server/imports/actions/find/index.js index cd6e0a7..6017335 100755 --- a/package/server/imports/actions/manage/index.js +++ b/package/server/imports/actions/find/index.js @@ -1,7 +1,7 @@ import { Utilities } from "../../utilities" import { process } from "./process.js" -var manage = function () { +var find = function () { // First, process the arguments var input = Utilities.helpers.processJobArguments(arguments); @@ -20,4 +20,4 @@ var manage = function () { } } -export { manage } \ No newline at end of file +export { find } \ No newline at end of file diff --git a/package/server/imports/actions/manage/process.js b/package/server/imports/actions/find/process.js similarity index 100% rename from package/server/imports/actions/manage/process.js rename to package/server/imports/actions/find/process.js diff --git a/package/server/imports/actions/manage/toolbelt.js b/package/server/imports/actions/find/toolbelt.js similarity index 98% rename from package/server/imports/actions/manage/toolbelt.js rename to package/server/imports/actions/find/toolbelt.js index 7cf5953..65e6804 100755 --- a/package/server/imports/actions/manage/toolbelt.js +++ b/package/server/imports/actions/find/toolbelt.js @@ -42,7 +42,7 @@ var toolbelt = function (jobDoc) { } } - return this.document.data[key] || null; + return this.document.data[key]; } this.push = function (key, value) { diff --git a/package/server/imports/actions/index.js b/package/server/imports/actions/index.js index aa3e2e2..9eb2c3f 100755 --- a/package/server/imports/actions/index.js +++ b/package/server/imports/actions/index.js @@ -3,7 +3,7 @@ import { get } from './get' import { clear } from './clear' import { cancel } from './cancel' import { execute } from './execute' -import { manage } from './manage' +import { find } from './find' import { remove } from './remove' import { replicate } from './replicate' import { reschedule } from './reschedule' @@ -11,10 +11,10 @@ import { reschedule } from './reschedule' var Actions = { add: add, get: get, + find: find, clear: clear, cancel: cancel, execute: execute, - manage: manage, remove: remove, replicate: replicate, reschedule: reschedule