landscape-node
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -198,3 +198,3 @@ 'use strict'; | ||
activity.activity_status = updatedActivity.activity_status; | ||
activity.emit('status', activity); | ||
activity.emit('status', activity.activity_status); | ||
@@ -201,0 +201,0 @@ if (['canceled', 'failed', 'succeeded'].includes(activity.activity_status)) { |
@@ -114,34 +114,39 @@ #!/usr/bin/env node | ||
}))); | ||
activity.on('done', (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2() { | ||
var message; | ||
return _regenerator2.default.wrap(function _callee2$(_context2) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
case 0: | ||
slacker.post('I have finished deploying using script \'' + script + '\' for servers *' + tag + '*. ' + 'Here are the details for each server:'); | ||
activity.on('done', function () { | ||
var ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(status) { | ||
var message; | ||
return _regenerator2.default.wrap(function _callee2$(_context2) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
case 0: | ||
slacker.post('I have finished deploying using script \'' + script + '\' for servers *' + tag + '*. ' + 'Here are the details for each server:'); | ||
_context2.t0 = slacker; | ||
_context2.next = 4; | ||
return reporter.text(activity); | ||
_context2.t0 = slacker; | ||
_context2.next = 4; | ||
return reporter.text(activity); | ||
case 4: | ||
_context2.t1 = _context2.sent; | ||
case 4: | ||
_context2.t1 = _context2.sent; | ||
_context2.t0.post.call(_context2.t0, _context2.t1); | ||
_context2.t0.post.call(_context2.t0, _context2.t1); | ||
message = 'Deployment completed with status ' + activity.activity_status; | ||
message = 'Deployment completed with status ' + status; | ||
if (['succeeded', 'canceled'].includes(activity.activity_status)) { | ||
log.info(message); | ||
} else { | ||
log.error(message); | ||
} | ||
if (['succeeded', 'canceled'].includes(status)) { | ||
log.info(message); | ||
} else { | ||
log.error(message); | ||
} | ||
case 8: | ||
case 'end': | ||
return _context2.stop(); | ||
case 8: | ||
case 'end': | ||
return _context2.stop(); | ||
} | ||
} | ||
} | ||
}, _callee2, undefined); | ||
}))); | ||
}, _callee2, undefined); | ||
})); | ||
return function (_x) { | ||
return ref.apply(this, arguments); | ||
}; | ||
}()); | ||
@@ -148,0 +153,0 @@ case 12: |
{ | ||
"name": "landscape-node", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A command-line tool for executing Landscape scripts.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/landscape", |
Sorry, the diff of this file is not supported yet
38570
857