shipit-cli
Advanced tools
Comparing version 4.1.2 to 4.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.2.0](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/compare/v4.1.4...v4.2.0) (2019-03-01) | ||
### Features | ||
* add "init:after_ssh_pool" event ([#230](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/issues/230)) ([e864338](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/commit/e864338)) | ||
## [4.1.2](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/compare/v4.1.1...v4.1.2) (2018-11-04) | ||
@@ -8,0 +19,0 @@ |
@@ -154,2 +154,3 @@ "use strict"; | ||
this.pool = new _sshPool.ConnectionPool(servers, options); | ||
this.emit('init:after_ssh_pool'); | ||
return this; | ||
@@ -156,0 +157,0 @@ } |
{ | ||
"name": "shipit-cli", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"description": "Universal automation and deployment tool written in JavaScript.", | ||
@@ -38,3 +38,3 @@ "engines": { | ||
}, | ||
"gitHead": "702242731bd631a3e3237996c92828931dc6302c" | ||
"gitHead": "7a5b1aae7ffedf94c709028a2a8031dcc3bcb8ad" | ||
} |
@@ -131,2 +131,22 @@ # shipit-cli | ||
## Workflow tasks | ||
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" | ||
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"); | ||
} | ||
}); | ||
``` | ||
## License | ||
@@ -133,0 +153,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
22744
364
161