Method: Jamf::Configuration#reload

Defined in:
lib/jamf/configuration.rb

#reload(file = nil) ⇒ void

This method returns an undefined value.

Clear the settings and reload the prefs files, or another file if provided

Parameters:

  • file (String, Pathname) (defaults to: nil)

    a non-standard prefs file to load



177
178
179
180
181
182
183
184
185
186
# File 'lib/jamf/configuration.rb', line 177

def reload(file = nil)
  clear_all
  if file
    read file
    return true
  end
  read_global
  read_user
  true
end