Class: Beaker::PuppetCommand
Constant Summary
Constants inherited from Command
Command::DEFAULT_GIT_ENV, Command::DEFAULT_GIT_PATH, Command::DEFAULT_GIT_RUBYLIB
Instance Attribute Summary
Attributes inherited from Command
#args, #command, #environment, #options
Instance Method Summary collapse
-
#initialize(*args) ⇒ PuppetCommand
constructor
A new instance of PuppetCommand.
Methods inherited from Command
#args_string, #cmd_line, #environment_string_for, #options_string
Constructor Details
#initialize(*args) ⇒ PuppetCommand
Returns a new instance of PuppetCommand.
227 228 229 230 231 232 233 |
# File 'lib/beaker/command.rb', line 227 def initialize *args command = "puppet #{args.shift}" opts = args.last.is_a?(Hash) ? args.pop : Hash.new opts['ENV'] ||= Hash.new opts['ENV'] = opts['ENV'].merge( DEFAULT_GIT_ENV ) super( command, args, opts ) end |