Class: Environment
- Inherits:
-
Object
- Object
- Environment
- Defined in:
- lib/environment.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env_hash, config_path) ⇒ Environment
constructor
A new instance of Environment.
- #set_variables ⇒ Object
Constructor Details
#initialize(env_hash, config_path) ⇒ Environment
Returns a new instance of Environment.
12 13 14 15 |
# File 'lib/environment.rb', line 12 def initialize(env_hash, config_path) @env_hash = env_hash @config_path = config_path end |
Class Method Details
.environment ⇒ Object
5 6 7 8 9 |
# File 'lib/environment.rb', line 5 def environment return 'dev' if ENV['environment'].nil? || ENV['environment'].empty? ENV['environment'] end |
Instance Method Details
#set_variables ⇒ Object
17 18 19 20 21 |
# File 'lib/environment.rb', line 17 def set_variables set_ops_variables set_environment_aliases set_configured_variables end |