class Dopi::Command::Winrm::Cmd
Public Instance Methods
command_string()
click to toggle source
# File lib/dopi/command/winrm/cmd.rb, line 37 def command_string exec + ' ' + arguments end
run()
click to toggle source
# File lib/dopi/command/winrm/cmd.rb, line 26 def run cmd_stdout, cmd_stderr, cmd_exit_code = winrm_command(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/winrm/cmd.rb, line 33 def run_noop log(:info, "(NOOP) Executing '#{command_string}' for command #{name}") end
validate()
click to toggle source
# File lib/dopi/command/winrm/cmd.rb, line 17 def validate validate_winrm validate_exec validate_env validate_arguments validate_exit_code validate_output end