Class: HammerCLIForeman::Auth::LogoutCommand

Inherits:
HammerCLI::AbstractCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/auth.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



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
  print_message(_("Credentials deleted."))
  HammerCLI::EX_OK
end