Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #28 from timkelty/copy-progress
Browse files Browse the repository at this point in the history
Pass --info=progress2 to rsync
  • Loading branch information
gregberge committed Feb 23, 2015
2 parents 4d7e6c6 + 743c62d commit e7394ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/shipit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions test/shipit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
});
});

Expand Down

0 comments on commit e7394ed

Please sign in to comment.