Class: Locomotive::Cmd::Config

Inherits:
Object
  • Object
show all
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.expand_path("../config/locomotive.yml", __FILE__))
  @@config[value]
end

.set_envObject



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