diff --git a/lib/core/plugin.js b/lib/core/plugin.js index 8b74fa9e..5e9b8425 100644 --- a/lib/core/plugin.js +++ b/lib/core/plugin.js @@ -22,6 +22,7 @@ var Plugin = function(options) { this.serviceChecks = []; this.dappGenerators = []; this.pluginTypes = []; + this.uploadCmds = []; this.imports = []; this.embarkjs_code = []; this.embarkjs_init_code = {}; @@ -187,6 +188,11 @@ Plugin.prototype.registerCompiler = function(extension, cb) { this.addPluginType('compilers'); }; +Plugin.prototype.registerUploadCommand = function(cmd, cb) { + this.uploadCmds.push({cmd: cmd, cb: cb}); + this.addPluginType('uploadCmds'); +}; + Plugin.prototype.addCodeToEmbarkJS = function(code) { this.embarkjs_code.push(code); this.addPluginType('embarkjsCode'); diff --git a/lib/modules/storage/index.js b/lib/modules/storage/index.js index 18643436..4490f485 100644 --- a/lib/modules/storage/index.js +++ b/lib/modules/storage/index.js @@ -1,6 +1,6 @@ class Storage { - constructor(embark, options){ + constructor(embark, _options){ this.embark = embark; this.storageConfig = embark.config.storageConfig; this.plugins = options.plugins;