lib/jamf/api/connection.rb
# reset all values to nil or empty
reset all values to nil or empty
reset all values to nil or empty
def disconnect
      @connected = false
      @name = NOT_CONNECTED
      @login_time = nil
      stop_keep_alive
      @host = nil
      @port = nil
      @user = nil
      @timeout = nil
      @open_timeout = nil
      @base_url = nil
      @token = nil
      @rest_cnx = nil
      @ssl_options = {}
      @keep_alive = nil
      @token_refresh = nil
      @pw_fallback = nil
      @pw = nil
      flushcache
    end
def disconnect @connected = false @name = NOT_CONNECTED @login_time = nil stop_keep_alive @host = nil @port = nil @user = nil @timeout = nil @open_timeout = nil @base_url = nil @token = nil @rest_cnx = nil @ssl_options = { } @keep_alive = nil @token_refresh = nil @pw_fallback = nil @pw = nil flushcache end
reset all values to nil or empty
reset all values to nil or empty