Module: Semmy::Scm
Instance Method Summary collapse
- #on_major_version_stable?(stable_branch_name) ⇒ Boolean
- #on_master? ⇒ Boolean
- #on_minor_version_stable?(stable_branch_name) ⇒ Boolean
Instance Method Details
#on_major_version_stable?(stable_branch_name) ⇒ Boolean
13 14 15 |
# File 'lib/semmy/scm.rb', line 13 def on_major_version_stable?(stable_branch_name) !!git.current_branch.match(major_version_stable_branch_matcher(stable_branch_name)) end |
#on_master? ⇒ Boolean
5 6 7 |
# File 'lib/semmy/scm.rb', line 5 def on_master? git.current_branch == 'master' end |
#on_minor_version_stable?(stable_branch_name) ⇒ Boolean
9 10 11 |
# File 'lib/semmy/scm.rb', line 9 def on_minor_version_stable?(stable_branch_name) !!git.current_branch.match(stable_branch_matcher(stable_branch_name)) end |