Class: Chake::Backend::Ssh
Instance Attribute Summary
#node
Instance Method Summary
collapse
backend_name, get, inherited, #run, #run_as_root, #run_shell, #skip?, #to_s
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_options, 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, scp_options].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
|