Module: Braid
- Defined in:
- lib/braid.rb,
lib/braid/config.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/list.rb,
lib/braid/commands/push.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
- CONFIG_FILE =
".braids"
- REQUIRED_GIT_VERSION =
"1.6"
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.local_cache_dir ⇒ Object
20
21
22
|
# File 'lib/braid.rb', line 20
def self.local_cache_dir
File.expand_path(ENV["BRAID_LOCAL_CACHE_DIR"] || "#{ENV["HOME"]}/.braid/cache")
end
|
.use_local_cache ⇒ Object
16
17
18
|
# File 'lib/braid.rb', line 16
def self.use_local_cache
[nil, "true", "1"].include?(ENV["BRAID_USE_LOCAL_CACHE"])
end
|
.verbose ⇒ Object
8
9
10
|
# File 'lib/braid.rb', line 8
def self.verbose
@verbose || false
end
|
.verbose=(new_value) ⇒ Object
12
13
14
|
# File 'lib/braid.rb', line 12
def self.verbose=(new_value)
@verbose = !!new_value
end
|