class HammerCLI::DefaultsCommand

Public Instance Methods

added_default_message(key, value) click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 132
def added_default_message(key, value)
  print_message(_("Added %{key_val} default-option with value that will be generated from the server.") % {:key_val => key.to_s}) if value.nil?
  print_message(_("Added %{key_val} default-option with value %{val_val}.") % {:key_val => key.to_s, :val_val => value.to_s}) unless value.nil?
end
bad_input() click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 149
def bad_input
  print_message(_("You must specify value or a provider name, can't specify both."))
end
defaults_not_supported_by_provider() click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 141
def defaults_not_supported_by_provider
  print_message(_("The param name is not supported by provider. See `hammer defaults providers` for supported params."))
end
param_deleted(param) click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 145
def param_deleted(param)
  print_message(_("%{param} was deleted successfully.") % {:param => param.to_s})
end
provider_prob_message(namespace) click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 137
def provider_prob_message(namespace)
  print_message(_("Provider %{name} was not found. See `hammer defaults providers` for available providers.") % {:name => namespace})
end
variable_not_found() click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 153
def variable_not_found
  print_message(_("Couldn't find the requested param in %s.") % context[:defaults].send(:path))
end