class YleTfPlugins::AWSAssumeRole::Config

Attributes

action_config[R]
tf_config[R]

Public Class Methods

new(action_config, tf_config) click to toggle source
# File lib/yle_tf-aws_assume_role/config.rb, line 8
def initialize(action_config, tf_config)
  @action_config = action_config
  @tf_config = tf_config
end

Public Instance Methods

[](key) click to toggle source
# File lib/yle_tf-aws_assume_role/config.rb, line 17
def [](key)
  @action_config.fetch(key.to_sym) { tf_config.fetch('aws', key.to_s) }
end
assume_role?() click to toggle source
# File lib/yle_tf-aws_assume_role/config.rb, line 13
def assume_role?
  self[:assume_role]
end