Module: GitCheckBit

Overview

takelage git check bit

Instance Method Summary collapse

Instance Method Details

#git_check_bitBoolean

Backend method for git check bit.

Returns:

  • (Boolean)

    are we on the git bit branch?



7
8
9
10
11
12
13
14
15
16
# File 'lib/takelage/git/check/bit.rb', line 7

def git_check_bit
  log.debug 'Check if we are on the git bit branch'

  return false unless git_check_workspace

  branch = _git_check_bit_get_branch
  log.debug "We are on git branch \"#{branch}\""

  branch == config.active['git_bit_branch']
end