class HammerCLIForeman::Auth::InfoCommand
Public Instance Methods
execute()
click to toggle source
# File lib/hammer_cli_foreman/auth.rb, line 35 def execute unless HammerCLIForeman.credentials.empty? print_message(_("You are logged in as '%s'") % HammerCLIForeman.credentials.username) else print_message(_("You are currently not logged in to any service.\nUse the service to set credentials.")) end HammerCLI::EX_OK end