Class: Locomotive::Cmd::Config
- Inherits:
-
Object
- Object
- Locomotive::Cmd::Config
- Defined in:
- lib/locomotive_cmd/config.rb
Class Method Summary collapse
Class Method Details
.[](value) ⇒ Object
3 4 5 6 |
# File 'lib/locomotive_cmd/config.rb', line 3 def self.[](value) @@config ||= YAML.load_file(File.("../config/locomotive.yml", __FILE__)) @@config[value] end |
.set_env ⇒ Object
8 9 10 11 12 |
# File 'lib/locomotive_cmd/config.rb', line 8 def self.set_env self['env'].each do |key, value| ENV[key.upcase] = value end end |