Class: Broadside::AwsConfiguration
- Inherits:
-
Object
- Object
- Broadside::AwsConfiguration
- Includes:
- ActiveModel::Model, InvalidConfiguration
- Defined in:
- lib/broadside/configuration/aws_configuration.rb
Instance Attribute Summary collapse
- #credentials ⇒ Object
-
#ecs_default_cluster ⇒ Object
Returns the value of attribute ecs_default_cluster.
-
#ecs_poll_frequency ⇒ Object
Returns the value of attribute ecs_poll_frequency.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize ⇒ AwsConfiguration
constructor
A new instance of AwsConfiguration.
Methods included from InvalidConfiguration
Constructor Details
#initialize ⇒ AwsConfiguration
Returns a new instance of AwsConfiguration.
19 20 21 22 |
# File 'lib/broadside/configuration/aws_configuration.rb', line 19 def initialize @ecs_poll_frequency = 2 @region = 'us-east-1' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Broadside::InvalidConfiguration
Instance Attribute Details
#credentials ⇒ Object
24 25 26 |
# File 'lib/broadside/configuration/aws_configuration.rb', line 24 def credentials @credentials ||= Aws::SharedCredentials.new.credentials || Aws::InstanceProfileCredentials.new.credentials end |
#ecs_default_cluster ⇒ Object
Returns the value of attribute ecs_default_cluster.
13 14 15 |
# File 'lib/broadside/configuration/aws_configuration.rb', line 13 def ecs_default_cluster @ecs_default_cluster end |
#ecs_poll_frequency ⇒ Object
Returns the value of attribute ecs_poll_frequency.
13 14 15 |
# File 'lib/broadside/configuration/aws_configuration.rb', line 13 def ecs_poll_frequency @ecs_poll_frequency end |
#region ⇒ Object
Returns the value of attribute region.
13 14 15 |
# File 'lib/broadside/configuration/aws_configuration.rb', line 13 def region @region end |