Exception: EY::BranchMismatch
- Defined in:
- lib/engineyard/error.rb
Instance Method Summary collapse
-
#initialize(default_branch, branch) ⇒ BranchMismatch
constructor
A new instance of BranchMismatch.
- #message ⇒ Object
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
#message ⇒ Object
36 37 38 39 |
# File 'lib/engineyard/error.rb', line 36 def %|Your deploy branch is set to "#{@default_branch}".\n| + %|If you want to deploy branch "#{@branch}", use --force.| end |