lib/beaker/dsl/wrappers.rb in beaker-2.7.1 vs lib/beaker/dsl/wrappers.rb in beaker-2.8.0
- old
+ new
@@ -10,11 +10,10 @@
# 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.
#
- # @api dsl
def facter(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
options['ENV'] ||= {}
options[:cmdexe] = true
Command.new('facter', args, options )
@@ -22,11 +21,10 @@
# 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.
#
- # @api dsl
def cfacter(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
options['ENV'] ||= {}
options[:cmdexe] = true
Command.new('cfacter', args, options )
@@ -34,11 +32,10 @@
# 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.
#
- # @api dsl
def hiera(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
options['ENV'] ||= {}
options[:cmdexe] = true
Command.new('hiera', args, options )
@@ -55,10 +52,9 @@
# 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.
#
- # @api dsl
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