Class: Propono::AwsConfig
- Inherits:
-
Object
- Object
- Propono::AwsConfig
- Defined in:
- lib/propono/components/aws_config.rb
Instance Method Summary collapse
- #aws_options ⇒ Object
-
#initialize(config) ⇒ AwsConfig
constructor
A new instance of AwsConfig.
Constructor Details
#initialize(config) ⇒ AwsConfig
Returns a new instance of AwsConfig.
4 5 6 |
# File 'lib/propono/components/aws_config.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#aws_options ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/propono/components/aws_config.rb', line 8 def if @config.use_iam_profile { :use_iam_profile => true, :region => @config.queue_region } else { :access_key_id => @config.access_key, :secret_access_key => @config.secret_key, :region => @config.queue_region } end end |