{"action":"created","issue":{"url":"https://api.github.com/repos/teambition/gulp-ssh/issues/32","labels_url":"https://api.github.com/repos/teambition/gulp-ssh/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/teambition/gulp-ssh/issues/32/comments","events_url":"https://api.github.com/repos/teambition/gulp-ssh/issues/32/events","html_url":"https://github.com/teambition/gulp-ssh/issues/32","id":107331615,"number":32,"title":"gulp-ssh.dest doesn't support merge-streams","user":{"login":"Rommero","id":6948547,"avatar_url":"https://avatars.githubusercontent.com/u/6948547?v=3","gravatar_id":"","url":"https://api.github.com/users/Rommero","html_url":"https://github.com/Rommero","followers_url":"https://api.github.com/users/Rommero/followers","following_url":"https://api.github.com/users/Rommero/following{/other_user}","gists_url":"https://api.github.com/users/Rommero/gists{/gist_id}","starred_url":"https://api.github.com/users/Rommero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rommero/subscriptions","organizations_url":"https://api.github.com/users/Rommero/orgs","repos_url":"https://api.github.com/users/Rommero/repos","events_url":"https://api.github.com/users/Rommero/events{/privacy}","received_events_url":"https://api.github.com/users/Rommero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-19T13:04:46Z","updated_at":"2015-11-16T15:44:15Z","closed_at":"2015-09-21T15:40:49Z","body":"Gulp fails when trying to merge multiple streams of gulp-ssh.dest. Error \"no writecb in Transform class\" occurs when trying to run the following gulp-task (merging 1 stream for simplicity)\r\n\r\n```javascript\r\ngulp.task(\"copy-to-remote\", function() {\r\n     var t = gulp\r\n        .src(src)\r\n        .pipe(gulpSSH.dest(dest))\r\n    return merge(t)\r\n})\r\n```\r\n\r\nHere's the traceback.\r\n\r\n```javascript\r\n[15:53:06] gulp-ssh :: Connect...\r\n[15:53:06] gulp-ssh :: Ready\r\n[15:53:06] Preparing to write \"/home/support/1/1.test\"\r\n[15:53:06] Writing '/home/support/1/1.test'\r\n[15:53:06] Finished writing '/home/support/1/1.test'\r\n[15:53:06] Preparing to write \"/home/support/1/123/55.txt\"\r\n[15:53:06] Writing '/home/support/1/123/55.txt'\r\n[15:53:06] Finished writing '/home/support/1/123/55.txt'\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: no writecb in Transform class\r\n    at afterTransform (/home/support/project/node_modules/gulp-ssh/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:75:33)\r\n    at TransformState.afterTransform (/home/support/project/node_modules/gulp-ssh/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:59:12)\r\n    at end (/home/support/project/node_modules/gulp-ssh/index.js:259:9)\r\n    at WriteStream.done (/home/support/project/node_modules/gulp-ssh/index.js:281:37)\r\n    at WriteStream.emit (events.js:95:17)\r\n    at /home/support/project/node_modules/gulp-ssh/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:2656:14\r\n    at SFTPStream._cleanup (/home/support/project/node_modules/gulp-ssh/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:193:38)\r\n    at SFTPStream.onFinish (/home/support/project/node_modules/gulp-ssh/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:159:10)\r\n    at SFTPStream.emit (events.js:117:20)\r\n    at finishMaybe (_stream_writable.js:359:12)\r\n```\r\n\r\nI suppose there's a kinda bug in through2 library usage. I'll try to figure it out and report you via PR \r\n"},"comment":{"url":"https://api.github.com/repos/teambition/gulp-ssh/issues/comments/157073768","html_url":"https://github.com/teambition/gulp-ssh/issues/32#issuecomment-157073768","issue_url":"https://api.github.com/repos/teambition/gulp-ssh/issues/32","id":157073768,"user":{"login":"TXChetG","id":3752043,"avatar_url":"https://avatars.githubusercontent.com/u/3752043?v=3","gravatar_id":"","url":"https://api.github.com/users/TXChetG","html_url":"https://github.com/TXChetG","followers_url":"https://api.github.com/users/TXChetG/followers","following_url":"https://api.github.com/users/TXChetG/following{/other_user}","gists_url":"https://api.github.com/users/TXChetG/gists{/gist_id}","starred_url":"https://api.github.com/users/TXChetG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TXChetG/subscriptions","organizations_url":"https://api.github.com/users/TXChetG/orgs","repos_url":"https://api.github.com/users/TXChetG/repos","events_url":"https://api.github.com/users/TXChetG/events{/privacy}","received_events_url":"https://api.github.com/users/TXChetG/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:44:15Z","updated_at":"2015-11-16T15:44:15Z","body":"Hiya! I see this was marked as closed, but after reading through I didn't really understand what the solution was. I'm having this problem now, and would love to get it taken care of. "}}