Class: HammerCLIKatello::ActivationKeyCommand::ListCommand
- Inherits:
-
ListCommand
- Object
- HammerCLIForeman::ListCommand
- ListCommand
- HammerCLIKatello::ActivationKeyCommand::ListCommand
- Includes:
- LifecycleEnvironmentNameMapping
- Defined in:
- lib/hammer_cli_katello/activation_key.rb
Instance Method Summary collapse
Methods included from LifecycleEnvironmentNameMapping
Methods inherited from ListCommand
Methods included from ResolverCommons
Instance Method Details
#extend_data(data) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/hammer_cli_katello/activation_key.rb', line 22 def extend_data(data) limit = data["unlimited_hosts"] ? _("Unlimited") : data["max_hosts"] data["format_consumed"] = _("%{consumed} of %{limit}") % { :consumed => data["usage_count"], :limit => limit } data end |