class Kitchen::Transport::Runtests::Connection
Public Instance Methods
execute_with_exit_code(command)
click to toggle source
Calls superclass method
# File lib/kitchen/transport/runtests.rb, line 8 def execute_with_exit_code(command) if command.start_with?("sh -c") super else login = login_command() cmd = [ login.instance_variable_get("@command"), login.instance_variable_get("@arguments").join(' '), '--', command.shellescape, ].join(' ') system(cmd) $?.exitstatus end end