Module: Braid

Defined in:
lib/braid.rb,
lib/braid/config.rb,
lib/braid/mirror.rb,
lib/braid/command.rb,
lib/braid/operations.rb,
lib/braid/commands/add.rb,
lib/braid/commands/diff.rb,
lib/braid/commands/list.rb,
lib/braid/commands/setup.rb,
lib/braid/commands/remove.rb,
lib/braid/commands/update.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.5"
CONFIG_FILE =
".braids"
REQUIRED_GIT_VERSION =
"1.6"

Class Method Summary collapse

Class Method Details

.local_cache_dirObject



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

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

.use_local_cacheObject



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

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

.verboseObject



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

def self.verbose; @verbose || false; end

.verbose=(new_value) ⇒ Object



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

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