Class: Broadside::Configuration
- Inherits:
-
Object
- Object
- Broadside::Configuration
- Includes:
- Utils
- Defined in:
- lib/broadside/configuration.rb,
lib/broadside/configuration/aws.rb,
lib/broadside/configuration/ecs.rb,
lib/broadside/configuration/base.rb,
lib/broadside/configuration/deploy.rb,
lib/broadside/configuration/struct.rb
Defined Under Namespace
Classes: AwsConfig, BaseConfig, ConfigStruct, DeployConfig, EcsConfig
Instance Attribute Summary collapse
-
#aws ⇒ Object
Returns the value of attribute aws.
-
#base ⇒ Object
Returns the value of attribute base.
-
#deploy ⇒ Object
Returns the value of attribute deploy.
-
#ecs ⇒ Object
Returns the value of attribute ecs.
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #method_missing(m, *args, &block) ⇒ Object
- #verify ⇒ Object
Methods included from Utils
#config, #debug, #error, #exception, #info, #warn
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/broadside/configuration.rb', line 7 def initialize @base = BaseConfig.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
27 28 29 30 |
# File 'lib/broadside/configuration.rb', line 27 def method_missing(m, *args, &block) warn "Unknown configuration '#{m}' provided, ignoring. Check your version of broadside?" ConfigStruct.new end |
Instance Attribute Details
#aws ⇒ Object
Returns the value of attribute aws.
5 6 7 |
# File 'lib/broadside/configuration.rb', line 5 def aws @aws end |
#base ⇒ Object
Returns the value of attribute base.
5 6 7 |
# File 'lib/broadside/configuration.rb', line 5 def base @base end |
#deploy ⇒ Object
Returns the value of attribute deploy.
5 6 7 |
# File 'lib/broadside/configuration.rb', line 5 def deploy @deploy end |
#ecs ⇒ Object
Returns the value of attribute ecs.
5 6 7 |
# File 'lib/broadside/configuration.rb', line 5 def ecs @ecs end |
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/broadside/configuration.rb', line 5 def file @file end |
Instance Method Details
#verify ⇒ Object
23 24 25 |
# File 'lib/broadside/configuration.rb', line 23 def verify @base.verify(:application, :docker_image) end |