Sha256: 803024563f39a1e2fc3f13bdbe9fa721cd6b0dd4c00950f76981abb5810a3d44

Contents?: true

Size: 529 Bytes

Versions: 62

Compression:

Stored size: 529 Bytes

Contents

module Opsicle
  class Deployments

    def initialize(client)
      @client = client
    end

    def data
      deployments(reload: true)
    end

    def deployments(options={})
      # Only call the API again if you need to
      @deployments = nil if options[:reload]
      @deployments ||= @client.api_call('describe_deployments',
                                       :stack_id => @client.config.opsworks_config[:stack_id]
                                      )[:deployments]
    end
    private :deployments

  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
opsicle-2.15.0 lib/opsicle/deployments.rb
opsicle-2.14.2 lib/opsicle/deployments.rb
opsicle-2.14.1 lib/opsicle/deployments.rb
opsicle-2.14.0 lib/opsicle/deployments.rb
opsicle-2.13.1 lib/opsicle/deployments.rb
opsicle-2.13.0 lib/opsicle/deployments.rb
opsicle-2.12.5 lib/opsicle/deployments.rb
opsicle-2.12.3 lib/opsicle/deployments.rb
opsicle-2.12.2 lib/opsicle/deployments.rb
opsicle-2.12.1 lib/opsicle/deployments.rb
opsicle-2.12.0 lib/opsicle/deployments.rb
opsicle-2.11.3 lib/opsicle/deployments.rb
opsicle-2.11.1 lib/opsicle/deployments.rb
opsicle-2.11.0 lib/opsicle/deployments.rb
opsicle-2.10.1 lib/opsicle/deployments.rb
opsicle-2.10.0 lib/opsicle/deployments.rb
opsicle-2.9.6 lib/opsicle/deployments.rb
opsicle-2.9.4 lib/opsicle/deployments.rb
opsicle-2.9.3 lib/opsicle/deployments.rb
opsicle-2.9.2 lib/opsicle/deployments.rb