teambition / gulp-ssh

SSH and SFTP tasks for gulp
184 stars 38 forks source link

How do I close the connection? #18

Closed 3m0 closed 9 years ago

3m0 commented 9 years ago

I don't see anywhere in the documentation how do I close the connection. When I run my gulp script it starts the ssh connection, runs the commands and hangs, making me press CTRL+C to stop the script.

zensh commented 9 years ago

Hi, v0.4.0 released, added close method.

In fact, it should auto close https://github.com/teambition/gulp-ssh/blob/master/index.js#L63, unless one more gulp instance used in your work.