module BigKeeper::GitflowType
Constants
- FEATURE
- HOTFIX
- RELEASE
Public Class Methods
base_branch(type)
click to toggle source
# File lib/big_keeper/model/gitflow_type.rb, line 31 def self.base_branch(type) if FEATURE == type "develop" elsif HOTFIX == type "master" elsif RELEASE == type "develop" else "master" end end
command(type)
click to toggle source
# File lib/big_keeper/model/gitflow_type.rb, line 19 def self.command(type) if FEATURE == type :feature elsif HOTFIX == type :hotfix elsif RELEASE == type :release else :feature end end
name(type)
click to toggle source
# 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