Class: ROM::Lotus::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rom-lotus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Config


17
18
19
20
# File 'lib/rom-lotus.rb', line 17

def initialize(root)
  @root = root
  @repositories = {}
end

Instance Attribute Details

#repositoriesObject (readonly)

Returns the value of attribute repositories


15
16
17
# File 'lib/rom-lotus.rb', line 15

def repositories
  @repositories
end

#rootObject (readonly)

Returns the value of attribute root


13
14
15
# File 'lib/rom-lotus.rb', line 13

def root
  @root
end

Instance Method Details

#db_dirObject


22
23
24
# File 'lib/rom-lotus.rb', line 22

def db_dir
  root.join('db')
end