Class/Module Index [+]

Quicksearch

HammerCLI::DefaultsCommand

Public Instance Methods

added_default_message(key, value) click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 133
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 150
def bad_input
  print_message(_("You must specify value or a provider name, cant specify both."))
end
defaults_not_supported_by_provider() click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 142
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 146
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 138
def provider_prob_message(namespace)
  print_message(_("Provider #{namespace} was not found. See `hammer defaults providers` for available providers."))
end
variable_not_found() click to toggle source
# File lib/hammer_cli/defaults_commands.rb, line 154
def variable_not_found
  print_message(_("Couldn't find the requested param in %s.") % context[:defaults].send(:path))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.