Exception: EY::BranchMismatch

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

Instance Method Summary collapse

Constructor Details

#initialize(default_branch, branch) ⇒ BranchMismatch

Returns a new instance of BranchMismatch.



31
32
33
34
# File 'lib/engineyard/error.rb', line 31

def initialize(default_branch, branch)
  super(nil)
  @default_branch, @branch = default_branch, branch
end

Instance Method Details

#messageObject



36
37
38
39
# File 'lib/engineyard/error.rb', line 36

def message
  %|Your deploy branch is set to "#{@default_branch}".\n| +
    %|If you want to deploy branch "#{@branch}", use --force.|
end