Class: ActiveGit::Configuration
- Inherits:
-
Object
- Object
- ActiveGit::Configuration
- Defined in:
- lib/active_git/configuration.rb
Instance Attribute Summary collapse
-
#sync_batch_size ⇒ Object
Returns the value of attribute sync_batch_size.
Instance Method Summary collapse
- #bare_path ⇒ Object
- #bare_path=(path) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #logger ⇒ Object
- #logger=(logger) ⇒ Object
- #working_path ⇒ Object
- #working_path=(path) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/active_git/configuration.rb', line 6 def initialize @sync_batch_size = 10000 end |
Instance Attribute Details
#sync_batch_size ⇒ Object
Returns the value of attribute sync_batch_size.
4 5 6 |
# File 'lib/active_git/configuration.rb', line 4 def sync_batch_size @sync_batch_size end |
Instance Method Details
#bare_path ⇒ Object
18 19 20 |
# File 'lib/active_git/configuration.rb', line 18 def @bare_path.is_a?(Proc) ? @bare_path.call : @bare_path end |
#bare_path=(path) ⇒ Object
22 23 24 |
# File 'lib/active_git/configuration.rb', line 22 def (path) @bare_path = path end |
#logger ⇒ Object
26 27 28 |
# File 'lib/active_git/configuration.rb', line 26 def logger GitWrapper.logger end |
#logger=(logger) ⇒ Object
30 31 32 |
# File 'lib/active_git/configuration.rb', line 30 def logger=(logger) GitWrapper.logger = logger end |
#working_path ⇒ Object
10 11 12 |
# File 'lib/active_git/configuration.rb', line 10 def working_path @working_path.is_a?(Proc) ? @working_path.call : @working_path end |
#working_path=(path) ⇒ Object
14 15 16 |
# File 'lib/active_git/configuration.rb', line 14 def working_path=(path) @working_path = path end |