From 743c62da1b1424131a01719c75831df43ec3dd6c Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Wed, 11 Feb 2015 13:29:15 -0500 Subject: [PATCH] Pass --info=progress2 to rsync --- lib/shipit.js | 3 ++- test/shipit.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/shipit.js b/lib/shipit.js index 3e90411..cee692a 100644 --- a/lib/shipit.js +++ b/lib/shipit.js @@ -241,7 +241,8 @@ Shipit.prototype.remoteCopy = function (src, dest, options, callback) { } options = _.defaults(options || {}, { - ignores: this.config && this.config.ignores ? this.config.ignores : [] + ignores: this.config && this.config.ignores ? this.config.ignores : [], + rsync: ['--info=progress2'] }); return this.pool.copy(src, dest, options, callback); diff --git a/test/shipit.js b/test/shipit.js index 27dd0c1..0afe169 100644 --- a/test/shipit.js +++ b/test/shipit.js @@ -95,12 +95,14 @@ describe('Shipit', function () { it('should accept options for shipit.pool.copy', function () { shipit.remoteCopy('src', 'dest', { - direction: 'remoteToLocal' + direction: 'remoteToLocal', + rsync: ['--info=progress2'] }); expect(shipit.pool.copy).to.be.calledWith('src', 'dest', { direction: 'remoteToLocal', - ignores: [] + ignores: [], + rsync: ['--info=progress2'] }); });