Sha256: d1aff57ae13264f26e4fccea231fb5aec701e38569f04c81d9f9107229937043
Contents?: true
Size: 317 Bytes
Versions: 3
Compression:
Stored size: 317 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 $app_root = File.expand_path('../../', __FILE__) require 'yaml' require 'erb' module Bootstrap module Config def self.get YAML.load( ERB.new(File.read("#{$app_root}/config/env.yaml")).result ).each { |key, value| ENV[key] = value } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hscode-0.1.2 | config/bootstrap.rb |
hscode-0.1.1 | config/bootstrap.rb |
hscode-0.1.0 | config/bootstrap.rb |