Module: BitCheckWorkspace

Included in:
Takelage::BitCheck, Takelage::BitClipboard, Takelage::BitRequire, Takelage::BitScope
Defined in:
lib/takelage/bit/check/workspace.rb

Overview

takelage bit check workspace

Instance Method Summary collapse

Instance Method Details

#bit_check_workspaceBoolean

Backend method for bit check workspace.

Returns:

  • (Boolean)

    is this a bit workspace?



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

def bit_check_workspace
  log.debug 'Check if this is a bit workspace'

  status_repo = _bit_check_workspace_bit_repo
  return true if status_repo.exitstatus.zero?

  dir = _bit_check_workspace_dir
  log.debug "No bit workspace found in \"#{dir}\""
  false
end