Top Level Namespace
Defined Under Namespace
Modules: Ethlite Classes: JsonRpc
Constant Summary collapse
- EthLite =
add convenience alternate spelling
Ethlite
Instance Method Summary collapse
-
#load_env(path = './.env') ⇒ Object
todo/fix: move .env loader to cocos - why? why not?.
Instance Method Details
#load_env(path = './.env') ⇒ Object
todo/fix:
move .env loader to
cocos - why? why not?
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ethlite.rb', line 7 def load_env( path='./.env' ) if File.exist?( path ) puts "==> loading .env settings..." env = read_yaml( path ) puts " applying .env settings... (merging into ENV)" pp env env.each do |k,v| ENV[k] ||= v end end end |