class Dopi::Command::Ssh::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/ssh/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/ssh/puppet_agent_run.rb, line 22 def check_run_lock ssh_command(env, "test -f $(#{puppet_bin} config print statedir)/agent_catalog_run.lock") end
puppet_run()
click to toggle source
# File lib/dopi/command/ssh/puppet_agent_run.rb, line 26 def puppet_run ssh_command(env, "#{puppet_bin} agent --test --color false #{arguments}") end
validate()
click to toggle source
# File lib/dopi/command/ssh/puppet_agent_run.rb, line 12 def validate validate_ssh validate_puppet_run end