Module: Braid

Defined in:
lib/braid/config.rb,
lib/braid.rb,
lib/braid/mirror.rb,
lib/braid/command.rb,
lib/braid/version.rb,
lib/braid/operations.rb,
lib/braid/commands/add.rb,
lib/braid/commands/diff.rb,
lib/braid/commands/push.rb,
lib/braid/commands/setup.rb,
lib/braid/commands/remove.rb,
lib/braid/commands/status.rb,
lib/braid/commands/update.rb,
lib/braid/operations_lite.rb,
lib/braid/commands/upgrade_config.rb

Overview

One helper that is shared with the integration test harness and has no dependencies on the rest of Braid.

Defined Under Namespace

Modules: Commands, Operations Classes: BraidError, Command, Config, InternalError, Mirror, NoPushToTag

Constant Summary collapse

OLD_CONFIG_FILE =
'.braids'
CONFIG_FILE =
'.braids.json'
REQUIRED_GIT_VERSION =
'1.6'
VERSION =
'1.1.3'.freeze

Class Method Summary collapse

Class Method Details

.forceObject



16
17
18
# File 'lib/braid.rb', line 16

def self.force
  !!@force
end

.force=(new_value) ⇒ Object



20
21
22
# File 'lib/braid.rb', line 20

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

.local_cache_dirObject



28
29
30
# File 'lib/braid.rb', line 28

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

.use_local_cacheObject



24
25
26
# File 'lib/braid.rb', line 24

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

.verboseObject



8
9
10
# File 'lib/braid.rb', line 8

def self.verbose
  !!@verbose
end

.verbose=(new_value) ⇒ Object



12
13
14
# File 'lib/braid.rb', line 12

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