Class: ElasticBeans::ConfigurationTemplate::Base
- Inherits:
-
ElasticBeans::ConfigurationTemplate
- Object
- ElasticBeans::ConfigurationTemplate
- ElasticBeans::ConfigurationTemplate::Base
- Defined in:
- lib/elastic_beans/configuration_template/base.rb
Overview
The “base” configuration template stored in the Elastic Beanstalk application. Common settings are stored here, such as networking settings and environment variables. Other configuration templates inherit from this one, so they all share this configuration.
Constant Summary
Constants inherited from ElasticBeans::ConfigurationTemplate
SOLUTION_STACK_PATTERN, SOURCE_CONFIGURATION, WORKER_TEMPLATE_NAME_PATTERN
Instance Attribute Summary
Attributes inherited from ElasticBeans::ConfigurationTemplate
Instance Method Summary collapse
-
#initialize(**args) ⇒ Base
constructor
A new instance of Base.
-
#solution_stack_name ⇒ Object
Returns the specifed
solution_stack
from #upsert.
Methods inherited from ElasticBeans::ConfigurationTemplate
#environment, new_by_type, new_from_existing, #option_settings, #options_to_remove, #upsert
Constructor Details
#initialize(**args) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/elastic_beans/configuration_template/base.rb', line 9 def initialize(**args) super(name: "base", **args) end |
Instance Method Details
#solution_stack_name ⇒ Object
Returns the specifed solution_stack
from #upsert. Finds the previously-configured solution stack when one was not specified. Finds the latest available Ruby Puma solution stack (matching SOLUTION_STACK_PATTERN
) when one was never specified.
16 17 18 |
# File 'lib/elastic_beans/configuration_template/base.rb', line 16 def solution_stack_name @solution_stack_name ||= (configured_solution_stack || super) end |