mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Added support for passing only path to project to Serverless constructor, so programmatic use can be sometimes more convenient.
This commit is contained in:
parent
4a358cc9ad
commit
8a072fd7cd
@ -88,6 +88,10 @@ class Serverless {
|
||||
}
|
||||
|
||||
setProject( project ) {
|
||||
if( _.isString( project ) ){
|
||||
project = this.classes.Project.findProject( project );
|
||||
}
|
||||
|
||||
this._project = project;
|
||||
|
||||
if( project != undefined ){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user