Class: Rasti::App::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/rasti/app/settings.rb

Class Method Summary collapse

Class Method Details

.load(environment, options = {}) ⇒ Object



6
7
8
# File 'lib/rasti/app/settings.rb', line 6

def load(environment, options={})
  load_file File.join(Dir.pwd, "#{environment}.yml"), options
end

.load_file(filename, options = {}) ⇒ Object



10
11
12
# File 'lib/rasti/app/settings.rb', line 10

def load_file(filename, options={})
  Hash::Accessible.new(evaluate(File.read(filename), options)).deep_freeze
end