Exception: EY::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/engineyard/error.rb

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