class EY::AmbiguousEnvironmentGitUriError
Public Class Methods
new(environments)
click to toggle source
Calls superclass method
# File lib/engineyard/error.rb, line 22 def initialize(environments) message = "The repository url in this directory is ambiguous.\n" message << "Please use -e <envname> to specify one of the following environments:\n" environments.sort do |a, b| if a.account == b.account a.name <=> b.name else a.account.name <=> b.account.name end end.each { |env| message << "\t#{env.name} (#{env.account.name})\n" } super message end