Class: ActiveFolder::Metal::Config
- Inherits:
-
Object
- Object
- ActiveFolder::Metal::Config
- Defined in:
- lib/activefolder/metal/config.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 |
# File 'lib/activefolder/metal/config.rb', line 10 def initialize self.root_path = '.' end |
Instance Attribute Details
#root_path ⇒ Object
14 15 16 17 18 19 |
# File 'lib/activefolder/metal/config.rb', line 14 def root_path @root_path != :git ? @root_path : rugged.discover('.').workdir rescue Rugged::RepositoryError => e raise SystemError.new(e) end |