Class: Chake::Backend::Ssh
- Inherits:
-
Backend
- Object
- Backend
- Chake::Backend::Ssh
- Defined in:
- lib/chake/backend/ssh.rb
Instance Method Summary collapse
- #command_runner ⇒ Object
- #rsync ⇒ Object
- #rsync_dest ⇒ Object
- #scp ⇒ Object
- #scp_dest ⇒ Object
- #shell_command ⇒ Object
Instance Method Details
#command_runner ⇒ Object
23 24 25 |
# File 'lib/chake/backend/ssh.rb', line 23 def command_runner [ssh_prefix, 'ssh', ssh_config, , ssh_target].flatten.compact end |
#rsync ⇒ Object
15 16 17 |
# File 'lib/chake/backend/ssh.rb', line 15 def rsync [ssh_prefix, 'rsync', rsync_ssh].flatten.compact end |
#rsync_dest ⇒ Object
19 20 21 |
# File 'lib/chake/backend/ssh.rb', line 19 def rsync_dest [ssh_target, node.path + '/'].join(':') end |
#scp ⇒ Object
7 8 9 |
# File 'lib/chake/backend/ssh.rb', line 7 def scp ['scp', ssh_config, ].flatten.compact end |
#scp_dest ⇒ Object
11 12 13 |
# File 'lib/chake/backend/ssh.rb', line 11 def scp_dest ssh_target + ':' end |
#shell_command ⇒ Object
27 28 29 |
# File 'lib/chake/backend/ssh.rb', line 27 def shell_command command_runner end |