Skip to content

afeiship/rake-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rake-ssh

Ssh/sftp task.

install:

npm i -S afeiship/rake-ssh --registry=https://registry.npm.taobao.org

usage:

$ rake -T
rake ssh:upload[config]  # Upload directory

example:

  • 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]

resources:

Releases

No releases published

Packages

No packages published

Languages