Module: Avm::EacRailsBase1::RunnerWith::RailsEnvironment
- Defined in:
- lib/avm/eac_rails_base1/runner_with/rails_environment.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- DEFAULT_RAILS_ENVIRONMENT_CONSTANT =
'DEFAULT_RAILS_ENVIRONMENT'
Instance Method Summary collapse
Instance Method Details
#rails_environment ⇒ Object
28 29 30 |
# File 'lib/avm/eac_rails_base1/runner_with/rails_environment.rb', line 28 def rails_environment parsed.environment.presence || default_rails_environment end |
#rails_instance ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/avm/eac_rails_base1/runner_with/rails_environment.rb', line 32 def rails_instance if respond_to?(:runner_context) runner_context.call(:instance) else context(:instance) end end |