lib/kitchen/busser.rb
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.
#
# @param [String] suite_name name of suite on which to operate
#   (**Required**)
# @param [Hash] opts optional configuration
# @option opts [TrueClass, FalseClass] :use_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
opts optional configuration
opts optional configuration
opts
:use_sudo whether or not to invoke sudo before commands requiring root access (default: `true`)
: use_sudo whether or not to invoke sudo before commands requiring root access ( default : ` true ` )