Module: BigKeeper::GitflowType
- Defined in:
- lib/big_keeper/model/gitflow_type.rb
Constant Summary collapse
- FEATURE =
1- HOTFIX =
2- RELEASE =
3
Class Method Summary collapse
Class Method Details
.base_branch(type) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/big_keeper/model/gitflow_type.rb', line 19 def self.base_branch(type) if FEATURE == type "develop" elsif HOTFIX == type "master" elsif RELEASE == type "develop" else "master" end end |
.name(type) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/big_keeper/model/gitflow_type.rb', line 7 def self.name(type) if FEATURE == type "feature" elsif HOTFIX == type "hotfix" elsif RELEASE == type "release" else "feature" end end |