lib/jamf/api/connection.rb
def parse_url(url, params)
      return unless url

      url = URI.parse url.to_s
      raise ArgumentError, 'Invalid url, scheme must be https' unless url.scheme == HTTPS_SCHEME

      params[:host] = url.host
      params[:port] = url.port
      params[:user] = url.user if url.user
      params[:pw] = url.password if url.password
    end
# Get host, port, user and pw from a URL, overriding any already in the params
#
# @return [String, nil] the pw if present
#
Get host, port, user and pw from a URL, overriding any already in the params
Get host port user and pw from a URL overriding any already in the params
def parse_url(url, params)
      return unless url
      url = URI.parse url.to_s
      raise ArgumentError, 'Invalid url, scheme must be https' unless url.scheme == HTTPS_SCHEME
      params[:host] = url.host
      params[:port] = url.port
      params[:user] = url.user if url.user
      params[:pw] = url.password if url.password
    end
def parse_url ( url , params ) return unless url url = URI . parse url . to_s raise ArgumentError , 'Invalid url, scheme must be https' unless url . scheme == HTTPS_SCHEME params [ :host ] = url . host params [ :port ] = url . port params [ :user ] = url . user if url . user params [ :pw ] = url . password if url . password end
Get host, port, user and pw from a URL, overriding any already in the params
Get host port user and pw from a URL overriding any already in the params
the pw if present
the pw if present
String, nil
url
params