serverless/lib/actions/ProjectCreate.js
2015-10-19 11:10:33 -05:00

42 lines
804 B
JavaScript

'use strict';
/**
* ProjectCreate
*/
// Defaults
const Base = require('../base'),
JawsError = require('../jaws-error'),
JawsCLI = require('../utils/cli'),
Promise = require('bluebird'),
fs = require('fs'),
path = require('path'),
os = require('os'),
AWSUtils = require('../utils/aws'),
utils = require('../utils'),
shortid = require('shortid');
Promise.promisifyAll(fs);
/**
* Project Create
*/
class ProjectCreate extends Base {
/**
* Constructor
*/
constructor() {
super();
// Prepare queue
this._queue = [];
this._queue = this._queue.concat(this.hooks.PreProjectCreate);
this._queue.push(this.actions.ProjectCreate);
this._queue = this._queue.concat(this.hooks.PostProjectCreate);
}
}
module.exports = ProjectCreate;