Class: HammerCLIKatello::ActivationKeyCommand::ListCommand

Inherits:
ListCommand
  • Object
show all
Includes:
LifecycleEnvironmentNameMapping
Defined in:
lib/hammer_cli_katello/activation_key.rb

Instance Method Summary collapse

Methods included from LifecycleEnvironmentNameMapping

included

Methods inherited from ListCommand

build_options

Methods included from ResolverCommons

included

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