Sha256: 81ee30440a6384dc5580500e74ab1f6d4571d0b11053a15e67a6d6c6e2e11868

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

# takelage bit check module
module BitCheckModule

  # Backend method for bit check workspace.
  # @return [Boolean] is this a bit workspace?
  def bit_check_workspace
    log.debug 'Check if this is a bit workspace'

    cmd_bit_repo = config.active['bit_repo']
    status_repo = try cmd_bit_repo

    cmd_pwd = config.active['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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
takelage-0.9.1 lib/takelage/bit/check/module.rb
takelage-0.9.0 lib/takelage/bit/check/module.rb
takelage-0.8.1 lib/takelage/bit/check/module.rb
takelage-0.8.0 lib/takelage/bit/check/module.rb
takelage-0.7.2 lib/takelage/bit/check/module.rb
takelage-0.7.1 lib/takelage/bit/check/module.rb
takelage-0.7.0 lib/takelage/bit/check/module.rb
takelage-0.6.0 lib/takelage/bit/check/module.rb
takelage-0.5.1 lib/takelage/bit/check/module.rb
takelage-0.5.0 lib/takelage/bit/check/module.rb