shipit-cli
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -143,3 +143,3 @@ var util = require('util'); | ||
var servers = _.isArray(this.config.servers) ? this.config.servers : [this.config.servers]; | ||
this.pool = new sshPool.ConnectionPool(servers, _.extend({}, this.options, _.pick(this.config, 'key'))); | ||
this.pool = new sshPool.ConnectionPool(servers, _.extend({}, this.options, _.pick(this.config, 'key', 'strict'))); | ||
return this; | ||
@@ -245,3 +245,4 @@ }; | ||
options = _.defaults(options || {}, { | ||
ignores: this.config && this.config.ignores ? this.config.ignores : [] | ||
ignores: this.config && this.config.ignores ? this.config.ignores : [], | ||
rsync: this.config && this.config.rsync ? this.config.rsync : [] | ||
}); | ||
@@ -248,0 +249,0 @@ |
{ | ||
"name": "shipit-cli", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Universal automation and deployment tool written in JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,2 +85,3 @@ # Shipit | ||
ignores: ['.git', 'node_modules'], | ||
rsync: ['--del'], | ||
keepReleases: 2, | ||
@@ -235,2 +236,17 @@ key: '/path/to/key', | ||
## Known Plugins | ||
### Official | ||
- [shipit-deploy](https://github.com/shipitjs/shipit-deploy) | ||
### Third Party | ||
- [shipit-shared](https://github.com/timkelty/shipit-shared) | ||
- [shipit-db](https://github.com/timkelty/shipit-db) | ||
- [shipit-assets](https://github.com/timkelty/shipit-assets) | ||
- [shipit-ssh](https://github.com/timkelty/shipit-ssh) | ||
- [shipit-utils](https://github.com/timkelty/shipit-utils) | ||
- [shipit-npm](https://github.com/callerc1/shipit-npm) | ||
## Who use Shipit? | ||
@@ -237,0 +253,0 @@ |
@@ -103,8 +103,24 @@ var sinon = require('sinon'); | ||
direction: 'remoteToLocal', | ||
ignores: [] | ||
ignores: [], | ||
rsync: [] | ||
}); | ||
}); | ||
it('should support options specified in config', function () { | ||
shipit.config = { | ||
ignores: ['foo'], | ||
rsync: ['--bar'] | ||
}; | ||
shipit.remoteCopy('src', 'dest', { | ||
direction: 'remoteToLocal' | ||
}); | ||
expect(shipit.pool.copy).to.be.calledWith('src', 'dest', { | ||
direction: 'remoteToLocal', | ||
ignores: ['foo'], | ||
rsync: ['--bar'] | ||
}); | ||
}); | ||
}); | ||
}); |
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
19845
350
259