Sha256: f3c8bd70cd1d10a077969a2ac2d3de566db5a14d984c74269d34eb8b8a6f5414

Contents?: true

Size: 355 Bytes

Versions: 16

Compression:

Stored size: 355 Bytes

Contents

require 'aws'

module OpsWorks
  class Resource
    def initialize(options = {})
      options.each do |key, value|
        send("#{key}=", value) if respond_to?("#{key}=")
      end
    end

    def self.client
      @client ||= AWS::OpsWorks::Client.new
    end

    def self.account
      ENV['ACCOUNT'] || @account || 'opsworks-cli'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
opsworks-cli-0.4.5 lib/opsworks/resource.rb
opsworks-cli-0.4.4 lib/opsworks/resource.rb
opsworks-cli-0.4.3 lib/opsworks/resource.rb
opsworks-cli-0.4.2 lib/opsworks/resource.rb
opsworks-cli-0.4.1 lib/opsworks/resource.rb
opsworks-cli-0.4.0 lib/opsworks/resource.rb
opsworks-cli-0.3.5 lib/opsworks/resource.rb
opsworks-cli-0.3.4 lib/opsworks/resource.rb
opsworks-cli-0.3.3 lib/opsworks/resource.rb
opsworks-cli-0.3.2 lib/opsworks/resource.rb
opsworks-cli-0.3.1 lib/opsworks/resource.rb
opsworks-cli-0.3.0 lib/opsworks/resource.rb
opsworks-cli-0.2.4 lib/opsworks/resource.rb
opsworks-cli-0.2.3 lib/opsworks/resource.rb
opsworks-cli-0.2.2 lib/opsworks/resource.rb
opsworks-cli-0.2.1 lib/opsworks/resource.rb