lib/chamber/file.rb
###
# Internal: Extracts the data from the file on disk.  First passing it through
# ERB to generate any dynamic properties and then passing the resulting data
# through YAML.
#
# Therefore if a settings file contains something like:
#
# ```erb
# test:
#   my_dynamic_value: <%= 1 + 1 %>
# ```
#
# then the resulting settings object would have:
#
# ```ruby
# settings[:test][:my_dynamic_value]
# # => 2
# ```
#
Extracts the data from the file on disk.  First passing it through
ERB to generate any dynamic properties and then passing the resulting data
through YAML.

Therefore if a settings file contains something like.



then the resulting settings object would have.


Extracts the data from the file on disk . First passing it through ERB to generate any dynamic properties and then passing the resulting data through YAML . Therefore if a settings file contains something like . then the resulting settings object would have .
def to_settings
    @data ||= Settings.new(settings:       file_contents_hash,
                           namespaces:     namespaces,
                           decryption_key: decryption_key,
                           encryption_key: encryption_key)
  end
def to_settings @data ||= Settings . new ( settings : file_contents_hash , namespaces : namespaces , decryption_key : decryption_key , encryption_key : encryption_key ) end
Internal: Extracts the data from the file on disk.
Internal : Extracts the data from the file on disk .