module BitCheckWorkspace
takelage bit check workspace
Public Instance Methods
bit_check_workspace()
click to toggle source
Backend method for bit check workspace. @return [Boolean] is this a bit workspace?
# 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
Private Instance Methods
_bit_check_workspace_bit_repo()
click to toggle source
Check bit repo.
# File lib/takelage/bit/check/workspace.rb, line 21 def _bit_check_workspace_bit_repo cmd_bit_repo = config.active['cmd_bit_check_workspace_bit_list'] try cmd_bit_repo end
_bit_check_workspace_dir()
click to toggle source
Get current working directory.
# File lib/takelage/bit/check/workspace.rb, line 29 def _bit_check_workspace_dir cmd_pwd = config.active['cmd_bit_check_workspace_pwd'] stdout_str_dir = run cmd_pwd stdout_str_dir.chomp end