Method: Jamf::Connection::DefaultConnection#logout
- Defined in:
- lib/jamf/api/connection/default_connection.rb
#logout ⇒ Object
Log out the default connection This not only disconnects the connection, but tells the server to invalidate the token that was used, meaning that token cannot be used elsewhere before its expiration time.
95 96 97 |
# File 'lib/jamf/api/connection/default_connection.rb', line 95 def logout @default_connection.logout if @default_connection&.connected? end |