Sha256: 4c38a6260648a623e9cd9292a0a1fa50d09597d81bc2e753ddd8fbd978e8f3e9
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
require 'pathname' module Lono module Core def env LONO_ENV end def root path = ENV['LONO_ROOT'] || '.' Pathname.new(path) end def setup! settings = Lono::Settings.new.data map = settings['aws_profile_lono_env_map'] lono_env = map[ENV['AWS_PROFILE']] || map['default'] || 'prod' # defaults to prod lono_env = ENV['LONO_ENV'] if ENV['LONO_ENV'] # highest precedence Kernel.const_set(:LONO_ENV, lono_env) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lono-3.5.0 | lib/lono/core.rb |