Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,8 @@ def executeRemote(command, builder)
ssh.loop
end
end
def executeRemoteSimple
def executeRemoteSimple(command,builder)
sh "ssh #{builder.username}@#{builder.hostname} '#{command}'"
end
#
# execution wrapper
......@@ -108,7 +109,11 @@ def execute(command, builder)
if builder.isLocal? then
executeLocal(commands)
else
executeRemote(commands,builder)
if ENV.include?('SIMPLE')
executeRemoteSimple(commands,builder)
else
executeRemote(commands,builder)
end
end
end
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment