Module: Semmy::Scm

Extended by:
Scm
Included in:
Scm
Defined in:
lib/semmy/scm.rb

Instance Method Summary collapse

Instance Method Details

#on_major_version_stable?(stable_branch_name) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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