Class: ActiveFolder::Metal::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/activefolder/metal/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_pathObject



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