class Dopi::Command::Ssh::Custom
Public Instance Methods
run()
click to toggle source
# File lib/dopi/command/ssh/custom.rb, line 27 def run cmd_stdout, cmd_stderr, cmd_exit_code = ssh_command(env, command_string) check_output(cmd_stdout) && check_output(cmd_stderr) && check_exit_code(cmd_exit_code) end
run_noop()
click to toggle source
# File lib/dopi/command/ssh/custom.rb, line 34 def run_noop log(:info, "(NOOP) Executing '#{command_string}' for command #{name}") log(:info, "(NOOP) Environment: #{env.to_s}") end
validate()
click to toggle source
# File lib/dopi/command/ssh/custom.rb, line 18 def validate validate_ssh validate_exec validate_env validate_arguments validate_exit_code validate_output end
Private Instance Methods
command_string()
click to toggle source
# File lib/dopi/command/ssh/custom.rb, line 41 def command_string exec + ' ' + arguments end