Method: Bcpm::Config.read_config
- Defined in:
- lib/bcpm/config.rb
.read_config ⇒ Object
Reads the YAML configuration file.
29 30 31 32 33 34 35 |
# File 'lib/bcpm/config.rb', line 29 def self.read_config if File.exists? config_file @config = File.open(config_file) { |f| YAML.load f } else @config = {} end end |