Sha256: 31a99fd5d52bcd8985a8717c4f205627063ff41c6e99205a57f3fa92bf9a9ac0

Contents?: true

Size: 1004 Bytes

Versions: 6

Compression:

Stored size: 1004 Bytes

Contents

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.force
    @force || false
  end

  def self.force=(new_value)
    @force = !!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 'braid/core_ext'
require 'braid/operations'
require 'braid/mirror'
require 'braid/config'
require 'braid/command'
require 'braid/commands/add'
require 'braid/commands/diff'
require 'braid/commands/list'
require 'braid/commands/push'
require 'braid/commands/remove'
require 'braid/commands/setup'
require 'braid/commands/update'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
realityforge-braid-0.9.4 lib/braid.rb
realityforge-braid-0.9.3 lib/braid.rb
realityforge-braid-0.9.2 lib/braid.rb
realityforge-braid-0.9.1 lib/braid.rb
realityforge-braid-0.9.0 lib/braid.rb
realityforge-braid-0.8.0 lib/braid.rb