mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
jaws: change utils var name to jawsutils
This commit is contained in:
parent
01700fd4c1
commit
0fb378e5d0
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path'),
|
||||
utils = require('./utils/index'),
|
||||
JawsUtils = require('./utils/index'),
|
||||
JawsCLI = require('./utils/cli'),
|
||||
JawsError = require('./jaws-error'),
|
||||
Promise = require('bluebird'),
|
||||
@ -23,7 +23,7 @@ class Jaws {
|
||||
this._awsAdminKeyId = config.awsAdminKeyId;
|
||||
this._awsAdminSecretKey = config.awsAdminSecretKey;
|
||||
this._version = require('./../package.json').version;
|
||||
this._projectRootPath = utils.findProjectRootPath(process.cwd());
|
||||
this._projectRootPath = JawsUtils.findProjectRootPath(process.cwd());
|
||||
this._projectJson = false;
|
||||
this.actions = {};
|
||||
this.hooks = {};
|
||||
@ -70,7 +70,7 @@ class Jaws {
|
||||
//};
|
||||
|
||||
// Load plugins: defaults
|
||||
var defaults = utils.readAndParseJsonSync(path.join(__dirname, './defaults/defaults.json'));
|
||||
var defaults = JawsUtils.readAndParseJsonSync(path.join(__dirname, './defaults/defaults.json'));
|
||||
this._loadPlugins(defaults.plugins);
|
||||
|
||||
// Load plugins: project
|
||||
@ -78,6 +78,8 @@ class Jaws {
|
||||
this._loadPlugins(this._projectJson.plugins);
|
||||
}
|
||||
|
||||
// Load plugins: aws-module
|
||||
|
||||
// Set commands
|
||||
}
|
||||
|
||||
@ -188,7 +190,6 @@ class Jaws {
|
||||
let plugin = plugins[i];
|
||||
|
||||
if (plugin.path) {
|
||||
|
||||
// Load from path
|
||||
plugin = require(path.join(__dirname, plugin.path));
|
||||
_this.addPlugin(new plugin(_this, plugin.config ? plugin.config : null));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user