Ssh/sftp task.
npm i -S afeiship/rake-ssh --registry=https://registry.npm.taobao.org
$ rake -T
rake ssh:upload[config] # Upload directory
- config/ssh.yaml
sshkit_config:
output_verbosity: :debug
format: :pretty
ssh_options:
:user: fzheng
:password: PASS_!@#
host: 192.168.1.11
dirs:
source: ./github/project
destination: /home/user/data
- bash:
rake ssh:upload[./config/ssh.yaml]