Class: HammerCLIKatello::ActivationKeyCommand::SubscriptionsCommand

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

Instance Method Summary collapse

Methods included from ResolverCommons

included

Instance Method Details

#extend_data(data) ⇒ Object



143
144
145
146
147
148
149
150
# File 'lib/hammer_cli_katello/activation_key.rb', line 143

def extend_data(data)
  data["format_consumed"] = _("%{consumed} of %{limit}") %
    {
      :consumed => data["consumed"],
      :limit => data["quantity"] == -1 ? _("Unlimited") : data["quantity"]
    }
  data
end