Exception: EY::BranchMismatchError

Inherits:
DeployArgumentError show all
Defined in:
lib/engineyard/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(default, ref) ⇒ BranchMismatchError

Returns a new instance of BranchMismatchError.



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/engineyard/error.rb', line 39

def initialize(default, ref)
  super <<-ERR
Your default branch is set to #{default.inspect} in ey.yml.
To deploy #{ref.inspect} you can:
  * Delete the line 'branch: #{default}' in ey.yml
OR
  * Use the -R [REF] or --force-ref [REF] options as follows:
Usage: ey deploy -R #{ref}
   ey deploy --force-ref #{ref}
  ERR
end