Class: Retrospec::Puppet::Generators::Facter::Core::Execution

Inherits:
Object
  • Object
show all
Defined in:
lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb

Class Method Summary collapse

Class Method Details

.execute(command, options = {}) ⇒ Object



16
17
18
19
20
# File 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb', line 16

def self.execute(command, options={})
  value = {:klass => self.to_s.gsub('Retrospec::Puppet::Generators::', ''),
           :method => :execute, :value => command}
  Retrospec::Puppet::Generators::Facter.exec_calls[command] = value
end