class Bashly::Config
A convenience class to use either a hash or a filename as a configuration source.
When a filename is provided, it is loaded with these extra features:
-
Support for `import` keyword to merge additional
YAML
files -
Preprocessing with ERB
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/bashly/config.rb, line 15 def self.new(config) if config.is_a? String YAML.load_erb_file(config).compose else config end end