Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

Commit

Permalink
Update ftp protocol output following data structure change in ftp-dep…
Browse files Browse the repository at this point in the history
…loy v1.1.0 .
  • Loading branch information
cliffano committed Nov 2, 2015
1 parent 943da74 commit 8e6c9d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 0.2.2-pre
* Add s3 protocol support
* Update ftp protocol output following data structure change in ftp-deploy v1.1.0

### 0.2.1
* Add ftp error handling
Expand Down
2 changes: 1 addition & 1 deletion lib/sendman.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Sendman.prototype._ftp = function (opts, cb) {
// send file via FTP
var ftpDeploy = new FtpDeploy();
ftpDeploy.on('uploaded', function(data) {
console.log('%s (%d/%d)', p.join(data.relativePath, data.filename), data.transferredFileCount, data.totalFileCount);
console.log('%s (%d/%d)', data.filename, data.transferredFileCount, data.totalFileCount);
});
ftpDeploy.on('upload-error', function (data) {
console.log('%s (%s)', p.join(data.relativePath, data.filename), data.err);
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"test": "./test"
},
"dependencies": {
"bagofcli": "^0.2.1",
"bagofcli": "^0.2.3",
"fs.extra": "^1.3.2",
"ftp-deploy": "^1.0.0",
"proxyquire": "^1.4.0",
"rsyncwrapper": "^0.4.2",
"ftp-deploy": "^1.1.0",
"proxyquire": "^1.7.3",
"rsyncwrapper": "^0.4.3",
"s3": "^4.4.0",
"scp2": "^0.2.1"
"scp2": "^0.2.2"
},
"devDependencies": {
"buster-node": "^0.7.1",
Expand All @@ -52,4 +52,4 @@
"url": "http://github.com/cliffano/sendman/raw/master/LICENSE"
}
]
}
}
3 changes: 1 addition & 2 deletions test/sendman.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ buster.testCase('sendman - ftp', {
function on(event, cb) {
if (event === 'uploaded') {
cb({
relativePath: 'some/path',
filename: 'somefile',
filename: 'some/path/somefile',
transferredFileCount: 6,
totalFileCount: 10
});
Expand Down

0 comments on commit 8e6c9d7

Please sign in to comment.