lib/jamf/api/connection.rb
# Raise execeptions if we don't have essential data for a new connection
# namely a host, user, and pw
# @param params[Hash] The params for #connect
#
# @return [void]
#
Raise execeptions if we don't have essential data for a new connection
namely a host, user, and pw
Raise execeptions if we don ' t have essential data for a new connection namely a host user and pw
def verify_basic_params(params)
      return if @token
      raise Jamf::MissingDataError, 'No Jamf :host specified, or in configuration.' unless params[:host]
      return if params[:token].is_a? String
      raise Jamf::MissingDataError, 'No Jamf :user specified, or in configuration.' unless params[:user]
      raise Jamf::MissingDataError, "No :pw specified for user '#{params[:user]}'" unless params[:pw]
    end
def verify_basic_params ( params ) return if @token raise Jamf :: MissingDataError , 'No Jamf :host specified, or in configuration.' unless params [ :host ] return if params [ :token ] . is_a? String raise Jamf :: MissingDataError , 'No Jamf :user specified, or in configuration.' unless params [ :user ] raise Jamf :: MissingDataError , "No :pw specified for user '#{params[:user]}'" unless params [ :pw ] end
Raise execeptions if we don't have essential data for a new connection
namely a host, user, and pw
Raise execeptions if we don ' t have essential data for a new connection namely a host user and pw
# if given a Token object, it has host, port, user, and base_url # and is already parsed # must have a host # no need for user or pass if using a token string # must have user and pw
None
void
params
The params for #connect
The params for #connect