Sha256: 11808892580e3b25e723df666fde05b40d1ade1886e2f12ea13ee5778198b4a7

Contents?: true

Size: 964 Bytes

Versions: 9

Compression:

Stored size: 964 Bytes

Contents

require 'braid/version'

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

  def self.verbose
    !!@verbose
  end

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

  def self.force
    !!@force
  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/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

9 entries across 9 versions & 1 rubygems

Version Path
braid-1.0.8 lib/braid.rb
braid-1.0.7 lib/braid.rb
braid-1.0.6 lib/braid.rb
braid-1.0.5 lib/braid.rb
braid-1.0.4 lib/braid.rb
braid-1.0.3 lib/braid.rb
braid-1.0.2 lib/braid.rb
braid-1.0.1 lib/braid.rb
braid-1.0.0 lib/braid.rb