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



111
112
113
114
115
# File 'lib/hammer_cli_foreman/auth.rb', line 111

def execute
  HammerCLIForeman.foreman_api_connection.logout
  print_message(_("Logged out."))
  HammerCLI::EX_OK
end