Class: HammerCLIForeman::Auth::LogoutCommand
- Inherits:
-
HammerCLI::AbstractCommand
- Object
- HammerCLI::AbstractCommand
- HammerCLIForeman::Auth::LogoutCommand
- Defined in:
- lib/hammer_cli_foreman/auth.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/hammer_cli_foreman/auth.rb', line 22 def execute #NOTE: we will change that to drop(:foreman) once dynamic bindings are implemented HammerCLIForeman.credentials.clear HammerCLI::Connection.drop_all (_("Credentials deleted.")) HammerCLI::EX_OK end |