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-0.15.0 lib/opsicle/deployments.rb
opsicle-0.14.0 lib/opsicle/deployments.rb
opsicle-0.13.1 lib/opsicle/deployments.rb
opsicle-0.13.0 lib/opsicle/deployments.rb
opsicle-0.12.0 lib/opsicle/deployments.rb
opsicle-0.11.0 lib/opsicle/deployments.rb
opsicle-0.10.0 lib/opsicle/deployments.rb
opsicle-0.9.0 lib/opsicle/deployments.rb
opsicle-0.8.2 lib/opsicle/deployments.rb
opsicle-0.8.1 lib/opsicle/deployments.rb
opsicle-0.8.0 lib/opsicle/deployments.rb
opsicle-0.7.1 lib/opsicle/deployments.rb
opsicle-0.7.0 lib/opsicle/deployments.rb
opsicle-0.6.0 lib/opsicle/deployments.rb
opsicle-0.5.1 lib/opsicle/deployments.rb
opsicle-0.5.0 lib/opsicle/deployments.rb
opsicle-0.4.2 lib/opsicle/deployments.rb
opsicle-0.4.0 lib/opsicle/deployments.rb
opsicle-0.3.1 lib/opsicle/deployments.rb
opsicle-0.3.0 lib/opsicle/deployments.rb