Sha256: 7ec3f4f888a29da05880ed8e282d3df5a124cf171246c8da791f45bcab5a302b

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

Contents

$:.unshift dirname = File.dirname(__FILE__)
require 'braid/version'

module Braid
  CONFIG_FILE          = ".braids"
  REQUIRED_GIT_VERSION = "1.6"

  def self.verbose
    @verbose || false
  end

  def self.verbose=(new_value)
    @verbose = !!new_value
  end

  def self.use_local_cache
    [nil, "true", "1"].include?(ENV["BRAID_USE_LOCAL_CACHE"])
  end

  def self.local_cache_dir
    File.expand_path(ENV["BRAID_LOCAL_CACHE_DIR"] || "#{ENV["HOME"]}/.braid/cache")
  end

  class BraidError < StandardError
    def message
      value = super
      value if value != self.class.name
    end
  end
end

require dirname + '/core_ext'
require 'braid/operations'
require 'braid/mirror'
require 'braid/config'
require 'braid/command'

Dir[dirname + '/braid/commands/*'].each do |file|
  require file
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braid-0.7.0 lib/braid.rb