lib/kitchen/busser.rb
# Constructs a new Busser command generator, given a suite name.
#
# @param [String] suite_name name of suite on which to operate
#   (**Required**)
# @param [Hash] opts optional configuration
# @option opts [String] :kitchen_root local path to the root of the project
# @option opts [String] :instance_ruby_bindir path to the directory
#   containing the Ruby binary on the remote instance
# @option opts [TrueClass, FalseClass] :sudo whether or not to invoke
#   sudo before commands requiring root access (default: `true`)
Constructs a new Busser command generator, given a suite name.
Constructs a new Busser command generator given a suite name .
def validate_options(suite_name)
      if suite_name.nil?
        raise ClientError, "Busser#new requires a suite_name"
      end
      if suite_name == 'helper'
        raise UserError,
          "Suite name invalid: 'helper' is a reserved directory name."
      end
    end
def validate_options ( suite_name ) if suite_name . nil? raise ClientError , "Busser#new requires a suite_name" end if suite_name == 'helper' raise UserError , "Suite name invalid: 'helper' is a reserved directory name." end end
Constructs a new Busser command generator, given a suite name.
Constructs a new Busser command generator given a suite name .
suite_name
<not_specific>
<not_specific>
opts optional configuration
opts optional configuration
opts
<not_specific>
:sudo whether or not to invoke sudo before commands requiring root access (default: `true`)
: sudo whether or not to invoke sudo before commands requiring root access ( default : ` true ` )