Class: HammerCLIKatello::CommandExtensions::Ping

Inherits:
HammerCLI::CommandExtensions
  • Object
show all
Defined in:
lib/hammer_cli_katello/command_extensions/ping.rb

Class Method Summary collapse

Class Method Details

.get_server_response(service_hash) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/hammer_cli_katello/command_extensions/ping.rb', line 17

def self.get_server_response(service_hash)
  if service_hash['duration_ms']
    _("Duration: %sms") % service_hash['duration_ms']
  elsif service_hash['message']
    _("Message: %s") % service_hash['message']
  end
end