fixing resources deploy

This commit is contained in:
Eslam A. Hefnawy 2015-11-23 03:18:18 +02:00
parent 4d7bfaf7c2
commit d04da1ac2e
2 changed files with 14 additions and 4 deletions

View File

@ -59,12 +59,18 @@ ex:
let _this = this,
spinner = JawsCLI.spinner();
JawsUtils.jawsDebug('stage and region param', stageRegion);
if(evt.stage && evt.region) {
_this.evt = evt;
if (_this.Jaws.cli) {
// Add options to evt
_this.evt = _this.Jaws.cli.options;
// Add region & stage from params.
_this.evt.stage = _this.Jaws.cli.params[0];
_this.evt.region = _this.Jaws.cli.params[1];
}
return this.Jaws.validateProject()
.bind(_this)
.then(_this._promptStageRegion)

View File

@ -75,6 +75,10 @@
{
"path": "./defaults/actions/EnvUnset.js",
"config": {}
},
{
"path": "./defaults/actions/ResourcesDeploy.js",
"config": {}
}
]
}