class Elbas::AWS::Base
Attributes
aws_counterpart[R]
Public Class Methods
aws_client(namespace = aws_namespace)
click to toggle source
# File lib/elbas/aws/base.rb, line 34 def self.aws_client(namespace = aws_namespace) Base.new.aws_client namespace end
Public Instance Methods
aws_access_key()
click to toggle source
# File lib/elbas/aws/base.rb, line 22 def aws_access_key fetch :aws_access_key end
aws_client(namespace = aws_namespace)
click to toggle source
# File lib/elbas/aws/base.rb, line 8 def aws_client(namespace = aws_namespace) @aws_client ||= begin options = {} options[:region] = aws_region if aws_region options[:credentials] = aws_credentials if aws_credentials.set? namespace::Client.new options end end
aws_credentials()
click to toggle source
# File lib/elbas/aws/base.rb, line 18 def aws_credentials fetch :aws_credentials, ::Aws::Credentials.new(aws_access_key, aws_secret_key) end
aws_region()
click to toggle source
# File lib/elbas/aws/base.rb, line 30 def aws_region fetch :aws_region end
aws_secret_key()
click to toggle source
# File lib/elbas/aws/base.rb, line 26 def aws_secret_key fetch :aws_secret_key end