ComponentCreate: add sPath to evt.data

This commit is contained in:
ac360 2016-02-05 00:36:15 -08:00 committed by Austen Collins
parent 4b79e5e751
commit c4f7fb6b0a
2 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,7 @@ usage: serverless component create`,
sPath: this.evt.options.name
});
this.S.state.setAsset(component);
this.evt.data.sPath = component._config.sPath;
return component.save();
};

View File

@ -23,6 +23,7 @@ let serverless;
let validateEvent = function(evt) {
assert.equal(true, typeof evt.options.name != 'undefined');
assert.equal(true, typeof evt.options.runtime != 'undefined');
assert.equal(true, typeof evt.data.sPath != 'undefined');
};
describe('Test action: Component Create', function() {