Class Configatron::YamlStore
In: lib/configatron/yaml_store.rb
Parent: Configatron::Store

Used to store each of the ‘sets’ of configuration parameters that came from a YAML file.

Methods

new   reload  

Attributes

file_location  [RW] 

Public Class methods

Takes the full path to the YAML file.

[Source]

    # File lib/configatron/yaml_store.rb, line 9
 9:     def initialize(file_location)
10:       super(params_from_yaml(file_location))
11:       @file_location = file_location
12:     end

Public Instance methods

Re-reads the YAML file.

[Source]

    # File lib/configatron/yaml_store.rb, line 15
15:     def reload
16:       if self.file_location
17:         params_from_yaml(self.file_location)
18:       end
19:     end

[Validate]