Commit cab6233f authored by Ralf Mueller's avatar Ralf Mueller
Browse files

implement alternative to net-ssh library

net-ssh library has some features missing and caused troubling handling
the .ssh/config setups. these work perfectly from the command line but
not when using them via the net-ssh interface.

althouth the interface is nice to use, I need password-less access
configures via .ssh/config - without additional problems
parent 0b05c233
...@@ -91,7 +91,8 @@ def executeRemote(command, builder) ...@@ -91,7 +91,8 @@ def executeRemote(command, builder)
ssh.loop ssh.loop
end end
end end
def executeRemoteSimple def executeRemoteSimple(command,builder)
sh "ssh #{builder.username}@#{builder.hostname} '#{command}'"
end end
# #
# execution wrapper # execution wrapper
...@@ -108,7 +109,11 @@ def execute(command, builder) ...@@ -108,7 +109,11 @@ def execute(command, builder)
if builder.isLocal? then if builder.isLocal? then
executeLocal(commands) executeLocal(commands)
else else
executeRemote(commands,builder) if ENV.include?('SIMPLE')
end end
end end
# #
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment