Sha256: f58614e7f220320701cf137c723282f53acae089a52694180d907f11c8f5f926

Contents?: true

Size: 590 Bytes

Versions: 9

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module Meroku
  # https://www.ruby-forum.com/topic/94852
  # https://forums.sketchup.com/t/how-to-pass-variable-to-a-tool-object-without-using-globals/14191/13
  module Shared
    class << self; attr_accessor :secrets; end

    @secrets = Secrets.new

    class << self
      def ec2_client
        ::Aws::EC2::Client.new(
          region: 'us-east-1',
          credentials: ::Aws::Credentials.new(
            Meroku::Shared.secrets.aws_access_key,
            Meroku::Shared.secrets.aws_access_key_secret
          )
        )
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
meroku-2.0.31 lib/meroku/shared.rb
meroku-2.0.30 lib/meroku/shared.rb
meroku-2.0.29 lib/meroku/shared.rb
meroku-2.0.28 lib/meroku/shared.rb
meroku-2.0.27 lib/meroku/shared.rb
meroku-2.0.26 lib/meroku/shared.rb
meroku-2.0.25 lib/meroku/shared.rb
meroku-2.0.24 lib/meroku/shared.rb
meroku-2.0.23 lib/meroku/shared.rb