Module: BitCheckModule
- Included in:
- Takelage::BitCheck, Takelage::BitClipboard, Takelage::BitScope
- Defined in:
- lib/takelage/bit/check/module.rb
Overview
takelage bit check module
Instance Method Summary collapse
-
#bit_check_workspace ⇒ Boolean
Backend method for bit check workspace.
Instance Method Details
#bit_check_workspace ⇒ Boolean
Backend method for bit check workspace.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/takelage/bit/check/module.rb', line 6 def bit_check_workspace log.debug 'Check if this is a bit workspace' cmd_bit_repo = config.active['cmd_bit_check_workspace_bit_list'] status_repo = try cmd_bit_repo cmd_pwd = config.active['cmd_bit_check_workspace_pwd'] stdout_str_dir = run cmd_pwd dir = stdout_str_dir.strip unless status_repo.exitstatus.zero? log.debug "No bit workspace found in \"#{dir}\"" return false end true end |