Exception: EY::Error
Direct Known Subclasses
API::InvalidCredentials, API::RequestFailed, AmbiguousAppNameError, BadAppMasterStatusError, BranchMismatchError, Config::ConfigurationError, DeployArgumentError, EnvironmentError, EnvironmentUnlinkedError, InvalidAppError, NoAppError, NoAppMasterError, NoCommandError, NoInstancesError, NoRemotesError, ResolveError
Instance Method Summary collapse
Instance Method Details
#ambiguous(type, name, matches, desc = "") ⇒ Object
3 4 5 6 7 |
# File 'lib/engineyard/error.rb', line 3 def ambiguous(type, name, matches, desc="") pretty_names = matches.map {|x| "'#{x}'"}.join(', ') "The name '#{name}' is ambiguous; it matches all of the following #{type} names: #{pretty_names}.\n" + "Please use a longer, unambiguous substring or the entire #{type} name." + desc end |