mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
commit
d79e586ba0
@ -13,16 +13,12 @@ module.exports = function(S) {
|
||||
|
||||
class RuntimeNode extends S.classes.Runtime {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
static getName() {
|
||||
return 'nodejs';
|
||||
}
|
||||
|
||||
getName() {
|
||||
return RuntimeNode.getName();
|
||||
return this.constructor.getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
13
lib/RuntimeNode43.js
Normal file
13
lib/RuntimeNode43.js
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(S) {
|
||||
|
||||
return class RuntimeNode43 extends S.classes.RuntimeNode {
|
||||
|
||||
static getName() {
|
||||
return 'nodejs4.3';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
@ -44,6 +44,7 @@ class Serverless {
|
||||
this.classes.Resources = require('./Resources')(this);
|
||||
this.classes.Runtime = require('./Runtime')(this);
|
||||
this.classes.RuntimeNode = require('./RuntimeNode')(this);
|
||||
this.classes.RuntimeNode43 = require('./RuntimeNode43')(this);
|
||||
this.classes.RuntimePython27 = require('./RuntimePython27')(this);
|
||||
|
||||
// Add Config Settings
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user