Class: Chake::Connection::Local
Instance Attribute Summary
#node
Instance Method Summary
collapse
connection_name, get, inherited, #read_output, #rsync, #rsync_dest, #run, #run_as_root, #run_shell, #scp, #scp_dest, #to_s
Instance Method Details
#command_runner ⇒ Object
6
7
8
|
# File 'lib/chake/connection/local.rb', line 6
def command_runner
['sh', '-c']
end
|
#shell_command ⇒ Object
10
11
12
|
# File 'lib/chake/connection/local.rb', line 10
def shell_command
ENV.fetch('SHELL', Etc.getpwuid.shell)
end
|
#skip? ⇒ Boolean
14
15
16
|
# File 'lib/chake/connection/local.rb', line 14
def skip?
node.hostname != Socket.gethostname
end
|