module Beaker::DSL::Wrappers

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-puppet/wrappers.rb, line 20
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-puppet/wrappers.rb, line 9
def facter(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options['ENV'] ||= {}
  options[:cmdexe] = true
  Command.new('facter', args, options )
end
hiera(*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-puppet/wrappers.rb, line 31
def hiera(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options['ENV'] ||= {}
  options[:cmdexe] = true
  Command.new('hiera', args, options )
end
puppet(*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-puppet/wrappers.rb, line 42
def puppet(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options['ENV'] ||= {}
  options[:cmdexe] = true
  # we assume that an invocation with `puppet()` will have it's first argument
  # a face or sub command
  cmd = "puppet #{args.shift}"
  Command.new( cmd, args, options )
end
puppet_agent(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 83
def puppet_agent(*args)
  puppet( 'agent', *args )
end
puppet_apply(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 73
def puppet_apply(*args)
  puppet( 'apply', *args )
end
puppet_cert(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 68
def puppet_cert(*args)
  puppet( 'cert', *args )
end
puppet_doc(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 58
def puppet_doc(*args)
  puppet( 'doc', *args )
end
puppet_filebucket(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 88
def puppet_filebucket(*args)
  puppet( 'filebucket', *args )
end
puppet_kick(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 63
def puppet_kick(*args)
  puppet( 'kick', *args )
end
puppet_master(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 78
def puppet_master(*args)
  puppet( 'master', *args )
end
puppet_resource(*args) click to toggle source

@!visibility private

# File lib/beaker-puppet/wrappers.rb, line 53
def puppet_resource(*args)
  puppet( 'resource', *args )
end