class Dopi::Command::Winrm::PuppetAgentRun
Public Class Methods
new(command_parser, step, node, is_verify_command)
click to toggle source
Calls superclass method
Dopi::Command::new
# File lib/dopi/command/winrm/puppet_agent_run.rb, line 17 def initialize(command_parser, step, node, is_verify_command) command_parser.overwrite_defaults = { :plugin_timeout => 1800 } super(command_parser, step, node, is_verify_command) end
Public Instance Methods
check_run_lock()
click to toggle source
# File lib/dopi/command/winrm/puppet_agent_run.rb, line 22 def check_run_lock winrm_powershell_command <<-cmd $Statedir = #{puppet_bin} config print statedir if(-not( Test-Path "$Statedir/agent_catalog_run.lock" )) { exit 1 } cmd end
puppet_run()
click to toggle source
# File lib/dopi/command/winrm/puppet_agent_run.rb, line 29 def puppet_run winrm_powershell_command("#{puppet_bin} agent --test --color false #{arguments}") end
validate()
click to toggle source
# File lib/dopi/command/winrm/puppet_agent_run.rb, line 12 def validate validate_winrm validate_puppet_run end