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 =
'1.0.1'
- USE_OPEN3 =
defined?(JRUBY_VERSION) || Gem.win_platform?
Class Method Summary
collapse
Class Method Details
.force ⇒ Object
15
16
17
|
# File 'lib/braid.rb', line 15
def self.force
!!@force
end
|
.force=(new_value) ⇒ Object
19
20
21
|
# File 'lib/braid.rb', line 19
def self.force=(new_value)
@force = !!new_value
end
|
.local_cache_dir ⇒ Object
27
28
29
|
# File 'lib/braid.rb', line 27
def self.local_cache_dir
File.expand_path(ENV['BRAID_LOCAL_CACHE_DIR'] || "#{ENV['HOME']}/.braid/cache")
end
|
.use_local_cache ⇒ Object
23
24
25
|
# File 'lib/braid.rb', line 23
def self.use_local_cache
[nil, 'true', '1'].include?(ENV['BRAID_USE_LOCAL_CACHE'])
end
|
.verbose ⇒ Object
7
8
9
|
# File 'lib/braid.rb', line 7
def self.verbose
!!@verbose
end
|
.verbose=(new_value) ⇒ Object
11
12
13
|
# File 'lib/braid.rb', line 11
def self.verbose=(new_value)
@verbose = !!new_value
end
|