mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
CLI Testing: some fixes
This commit is contained in:
parent
037a54e336
commit
76d4cf1a54
@ -157,6 +157,10 @@ class Component extends SerializerFileSystem {
|
||||
return _.values( this.functions );
|
||||
}
|
||||
|
||||
getAllEndpoints() {
|
||||
return _.flatten( _.map( this.getAllFunctions(), f => f.getAllEndpoints() ) );
|
||||
}
|
||||
|
||||
setFunction( func ){
|
||||
this.functions[ func.name ] = func;
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@ class Project extends SerializerFileSystem {
|
||||
)
|
||||
}
|
||||
|
||||
getAllEndpoints(options) {
|
||||
getAllEndpoints() {
|
||||
return _.flatten( _.map( this.getAllFunctions(), f => f.getAllEndpoints() ) );
|
||||
}
|
||||
|
||||
|
||||
@ -103,7 +103,7 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
let region = _this.deployed[Object.keys(_this.deployed)[i]];
|
||||
SCli.log(Object.keys(_this.deployed)[i] + ' ------------------------');
|
||||
for (let j = 0; j < region.length; j++) {
|
||||
SCli.log(' ' + region[j].name);
|
||||
SCli.log(` ${region[j].name} (${region[j].type} event)`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -258,7 +258,8 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
if (!_this.deployed[region]) _this.deployed[region] = [];
|
||||
_this.deployed[region].push({
|
||||
function: event._function,
|
||||
name: event.name
|
||||
name: event.name,
|
||||
type: event.type
|
||||
});
|
||||
|
||||
return eCb();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user