Class: Commons::Integrity::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/commons/integrity/config.rb

Overview

This represents the configuration. For now we only have a single config file, but I expect this will become more complex later, and will likely need split into an abstract ‘Config` combining multiple `Config::File` objects.

Instance Method Summary collapse

Constructor Details

#initialize(supplied_location = nil) ⇒ Config

Returns a new instance of Config.



12
13
14
# File 'lib/commons/integrity/config.rb', line 12

def initialize(supplied_location = nil)
  @supplied_location = supplied_location
end

Instance Method Details

#for(check) ⇒ Object



16
17
18
# File 'lib/commons/integrity/config.rb', line 16

def for(check)
  yaml[check]
end