shipit-cli
Advanced tools
Comparing version 4.2.0 to 5.0.0
@@ -70,5 +70,5 @@ "use strict"; | ||
try { | ||
/* eslint-disable global-require, import/no-dynamic-import, import/no-dynamic-require */ | ||
/* eslint-disable global-require, import/no-dynamic-require */ | ||
const module = require(env.configPath); | ||
/* eslint-enable global-require, import/no-dynamic-import, import/no-dynamic-require */ | ||
/* eslint-enable global-require, import/no-dynamic-require */ | ||
@@ -75,0 +75,0 @@ |
@@ -85,3 +85,3 @@ "use strict"; | ||
this.globalConfig = {}; | ||
this.options = _extends({}, defaultOptions, options); | ||
this.options = _extends({}, defaultOptions, {}, options); | ||
this.environment = options.environment; | ||
@@ -168,3 +168,3 @@ this.initializeEvents(); | ||
this.globalConfig = config; | ||
this.config = _extends({}, config.default, config[this.environment]); | ||
this.config = _extends({}, config.default, {}, config[this.environment]); | ||
return this; | ||
@@ -232,3 +232,3 @@ } | ||
const copyOptions = _extends({}, defaultOptions, options); | ||
const copyOptions = _extends({}, defaultOptions, {}, options); | ||
@@ -263,3 +263,3 @@ return _this2.pool.copy(src, dest, copyOptions); | ||
const copyOptions = _extends({}, defaultOptions, options); | ||
const copyOptions = _extends({}, defaultOptions, {}, options); | ||
@@ -293,3 +293,3 @@ return _this3.pool.copyToRemote(src, dest, copyOptions); | ||
const copyOptions = _extends({}, defaultOptions, options); | ||
const copyOptions = _extends({}, defaultOptions, {}, options); | ||
@@ -296,0 +296,0 @@ return _this4.pool.copyFromRemote(src, dest, copyOptions); |
{ | ||
"name": "shipit-cli", | ||
"version": "4.2.0", | ||
"version": "5.0.0", | ||
"description": "Universal automation and deployment tool written in JavaScript.", | ||
@@ -31,10 +31,10 @@ "engines": { | ||
"interpret": "^1.1.0", | ||
"liftoff": "^2.5.0", | ||
"liftoff": "^3.1.0", | ||
"orchestrator": "^0.3.7", | ||
"pretty-hrtime": "^1.0.0", | ||
"ssh-pool": "^4.1.2", | ||
"ssh-pool": "^5.0.0", | ||
"stream-line-wrapper": "^0.1.1", | ||
"v8flags": "^3.1.0" | ||
}, | ||
"gitHead": "7a5b1aae7ffedf94c709028a2a8031dcc3bcb8ad" | ||
"gitHead": "0516ca80aedc23fb5f7995f2560be5b0380c2e9a" | ||
} |
@@ -133,20 +133,24 @@ # shipit-cli | ||
When the system initializes it automatically emits events: | ||
* Emit event "init" | ||
* Emit event "init:after_ssh_pool" | ||
When the system initializes it automatically emits events: | ||
- Emit event "init" | ||
- Emit event "init:after_ssh_pool" | ||
Each shipit task also generates events: | ||
* Emit event "task_start" | ||
* Emit event "task_stop" | ||
* Emit event "task_err" | ||
* Emit event "task_not_found" | ||
- Emit event "task_start" | ||
- Emit event "task_stop" | ||
- Emit event "task_err" | ||
- Emit event "task_not_found" | ||
Inside the task events, you can test for the task name. | ||
```js | ||
shipit.on("task_start", (event) => { | ||
if (event.task == "first_task"){ | ||
shipit.log("I'm the first task"); | ||
} | ||
}); | ||
shipit.on('task_start', event => { | ||
if (event.task == 'first_task') { | ||
shipit.log("I'm the first task") | ||
} | ||
}) | ||
``` | ||
## License | ||
@@ -153,0 +157,0 @@ |
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
165
22693
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfindup-sync@3.0.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedliftoff@3.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedssh-pool@5.3.0(transitive)
+ Addedtmp@0.1.0(transitive)
- Removedfindup-sync@2.0.0(transitive)
- Removedis-glob@3.1.0(transitive)
- Removedliftoff@2.5.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedssh-pool@4.1.2(transitive)
- Removedtmp@0.0.33(transitive)
Updatedliftoff@^3.1.0
Updatedssh-pool@^5.0.0