lib/jamf/api/connection.rb
# Apply defaults from the Jamf::Client
# to the params for the #connect method
#
# @param params[Hash] The params for #connect
#
# @return [Hash] The params with defaults applied
#
Apply defaults from the Jamf::Client
to the params for the #connect method
Apply defaults from the Jamf :: Client to the params for the #connect method
def apply_defaults_from_client(params)
      return unless Jamf::Client.installed?
      params[:host] ||= Jamf::Client.jss_server
      params[:port] ||= Jamf::Client.jss_port.to_i
    end
def apply_defaults_from_client ( params ) return unless Jamf :: Client . installed? params [ :host ] ||= Jamf :: Client . jss_server params [ :port ] ||= Jamf :: Client . jss_port . to_i end
Apply defaults from the Jamf::Client
to the params for the #connect method
Apply defaults from the Jamf :: Client to the params for the #connect method
# these settings can come from the jamf binary config, # if this machine is a Jamf client.
The params with defaults applied
The params with defaults applied
Hash
params
The params for #connect
The params for #connect