Class: Chake::Backend::Local
Instance Attribute Summary
#node
Instance Method Summary
collapse
backend_name, get, inherited, #rsync, #rsync_dest, #run, #run_as_root, #run_shell, #scp, #scp_dest, #to_s
Instance Method Details
#command_runner ⇒ Object
9
10
11
|
# File 'lib/chake/backend/local.rb', line 9
def command_runner
['sh', '-c']
end
|
#shell_command ⇒ Object
13
14
15
|
# File 'lib/chake/backend/local.rb', line 13
def shell_command
ENV.fetch('SHELL', Etc.getpwuid.shell)
end
|
#skip? ⇒ Boolean
17
18
19
|
# File 'lib/chake/backend/local.rb', line 17
def skip?
node.hostname != Socket.gethostname
end
|