module Beaker::DSL::Wrappers

These are wrappers to equivalent {Beaker::Command} objects so that command line actions are executed within an appropriate and configurable environment.

I find most of these adapters of suspicious value and have deprecated many of them.

Public Instance Methods

cfacter(*args) click to toggle source

This is hairy and because of legacy code it will take a bit more work to disentangle all of the things that are being passed into this catchall param.

# File lib/beaker-facter/helpers.rb, line 26
def cfacter(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options['ENV'] ||= {}
  options[:cmdexe] = true
  Command.new('cfacter', args, options )
end
facter(*args) click to toggle source

This is hairy and because of legacy code it will take a bit more work to disentangle all of the things that are being passed into this catchall param.

# File lib/beaker-facter/helpers.rb, line 15
def facter(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options['ENV'] ||= {}
  options[:cmdexe] = true
  Command.new('facter', args, options )
end