Method: Brief::Briefcase#load_configuration
- Defined in:
- lib/brief/briefcase.rb
#load_configuration ⇒ Object
Loads the configuration for this briefcase, either from the current working directory or the configured path for the configuration file.
124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/brief/briefcase.rb', line 124 def load_configuration config_path = .fetch(:config_path) do root.join('brief.rb') end if config_path.is_a?(String) config_path = root.join(config_path) end if config_path.exist? instance_eval(config_path.read) rescue nil end end |