Class: HammerCLIKatello::ActivationKeyCommand::ListCommand

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

Instance Method Summary collapse

Methods included from LifecycleEnvironmentNameResolvable

#all_options, included, #lifecycle_environment_resolve_options

Methods included from ResolverCommons

included

Instance Method Details

#extend_data(data) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/hammer_cli_katello/activation_key.rb', line 25

def extend_data(data)
  data["format_consumed"] = _("%{consumed} of %{limit}") %
    {
      :consumed => data["usage_count"],
      :limit => data["unlimited_content_hosts"] ? _("Unlimited") : data["max_content_hosts"]
    }
  data
end