Class: Chake::Connection::Ssh
Instance Attribute Summary
#node
Instance Method Summary
collapse
connection_name, get, inherited, #read_output, #run, #run_as_root, #run_shell, #skip?, #to_s
Instance Method Details
#command_runner ⇒ Object
20
21
22
|
# File 'lib/chake/connection/ssh.rb', line 20
def command_runner
[ssh_prefix, 'ssh', ssh_config, ssh_options, ssh_target].flatten.compact
end
|
#rsync ⇒ Object
12
13
14
|
# File 'lib/chake/connection/ssh.rb', line 12
def rsync
[ssh_prefix, 'rsync', rsync_ssh].flatten.compact
end
|
#rsync_dest ⇒ Object
16
17
18
|
# File 'lib/chake/connection/ssh.rb', line 16
def rsync_dest
[ssh_target, "#{node.path}/"].join(':')
end
|
#scp ⇒ Object
4
5
6
|
# File 'lib/chake/connection/ssh.rb', line 4
def scp
['scp', ssh_config, scp_options].flatten.compact
end
|
#scp_dest ⇒ Object
8
9
10
|
# File 'lib/chake/connection/ssh.rb', line 8
def scp_dest
"#{ssh_target}:"
end
|
#shell_command ⇒ Object
24
25
26
|
# File 'lib/chake/connection/ssh.rb', line 24
def shell_command
command_runner
end
|