Comparing version 0.3.3 to 0.3.4
@@ -16,2 +16,7 @@ 'use strict'; | ||
var key = argv.key || argv.k; | ||
var secret = argv.secret || argv.s; | ||
var profile = argv.profile || argv.p; | ||
var region = argv.region || argv.r; | ||
(0, _common.getModule)(stackFile).then(function (stack) { | ||
@@ -21,3 +26,3 @@ if (!stack.apply) { | ||
} | ||
return stack.apply(); | ||
return stack.apply({ key: key, secret: secret, profile: profile, region: region }); | ||
}).then(function (res) { | ||
@@ -24,0 +29,0 @@ (typeof res === 'undefined' ? 'undefined' : _typeof(res)) === 'object' ? (0, _emit.log)('Stack successfully applied!') : (0, _emit.log)(res); |
@@ -106,9 +106,9 @@ 'use strict'; | ||
output: function output(id, value) { | ||
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
output: function output(id) { | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var obj = { Value: value }; | ||
var obj = { Value: opts.value }; | ||
if (opts.description) obj.Description = opts.description; | ||
if (opts.export) { | ||
if (!opts.noExport) { | ||
obj.Export = { | ||
@@ -115,0 +115,0 @@ Name: intrinsics.join([_pseudos2.default.stackName(), id], '-') |
@@ -19,6 +19,2 @@ 'use strict'; | ||
var _cloudformation = require('./components/cloudformation'); | ||
var _cloudformation2 = _interopRequireDefault(_cloudformation); | ||
var _types = require('./components/types'); | ||
@@ -36,2 +32,6 @@ | ||
var _apply = require('./components/apply'); | ||
var _apply2 = _interopRequireDefault(_apply); | ||
var _emit = require('./utils/emit'); | ||
@@ -52,3 +52,5 @@ | ||
this._name = opts.name || 'axe-' + _cryptoExtra2.default.randomString(15, '0123456789'); | ||
if (!opts.name) (0, _emit.warn)('Stacks with generated names cannot be updated'); | ||
if (!opts.name) { | ||
(0, _emit.warn)('Stacks with generated names cannot be updated! Provide your own name to remedy this.'); | ||
} | ||
@@ -61,2 +63,3 @@ this._params = opts.params || {}; | ||
if (process.env.NODE_ENV) { | ||
this.baseName = this._name; | ||
this._name += '--' + process.env.NODE_ENV; | ||
@@ -89,6 +92,3 @@ } else { | ||
this.aws_profile = opts.profile; | ||
this.aws_region = opts.region; | ||
this.apply = _cloudformation2.default; | ||
this.apply = _apply2.default; | ||
} | ||
@@ -95,0 +95,0 @@ |
{ | ||
"name": "axe", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Create AWS infrastructure with Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Jason Maurer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28455
627