Class: Beaker::PuppetCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/beaker/command.rb

Instance Attribute Summary

Attributes inherited from Command

#args, #command, #environment, #options

Instance Method Summary collapse

Methods inherited from Command

#args_string, #cmd_line, #options_string

Constructor Details

#initialize(*args) ⇒ PuppetCommand

Returns a new instance of PuppetCommand.



127
128
129
130
131
132
133
# File 'lib/beaker/command.rb', line 127

def initialize *args
  command = "puppet #{args.shift}"
  opts = args.last.is_a?(Hash) ? args.pop : {}
  opts['ENV'] ||= {}
  opts[:cmdexe] = true
  super(command, args, opts)
end