Class: HammerCLIForemanRhCloud::CommandExtensions::Ping
- Inherits:
-
HammerCLI::CommandExtensions
- Object
- HammerCLI::CommandExtensions
- HammerCLIForemanRhCloud::CommandExtensions::Ping
- Defined in:
- lib/hammer_cli_foreman_rh_cloud/command_extensions/ping.rb
Class Method Summary collapse
Class Method Details
.format_response(service_hash) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/hammer_cli_foreman_rh_cloud/command_extensions/ping.rb', line 14 def self.format_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 |