Sha256: 38d0e1dfaba122134de244d12881e8f3f2de7b9f4c7184427e0fd3e61fdba3e6

Contents?: true

Size: 527 Bytes

Versions: 17

Compression:

Stored size: 527 Bytes

Contents

module Opsicle
  class Stack

    def initialize(client)
      @client = client
    end

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

    def name
      stack_summary[:name]
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
opsicle-0.11.0 lib/opsicle/stack.rb
opsicle-0.10.0 lib/opsicle/stack.rb
opsicle-0.9.0 lib/opsicle/stack.rb
opsicle-0.8.2 lib/opsicle/stack.rb
opsicle-0.8.1 lib/opsicle/stack.rb
opsicle-0.8.0 lib/opsicle/stack.rb
opsicle-0.7.1 lib/opsicle/stack.rb
opsicle-0.7.0 lib/opsicle/stack.rb
opsicle-0.6.0 lib/opsicle/stack.rb
opsicle-0.5.1 lib/opsicle/stack.rb
opsicle-0.5.0 lib/opsicle/stack.rb
opsicle-0.4.2 lib/opsicle/stack.rb
opsicle-0.4.0 lib/opsicle/stack.rb
opsicle-0.3.1 lib/opsicle/stack.rb
opsicle-0.3.0 lib/opsicle/stack.rb
opsicle-0.2.1 lib/opsicle/stack.rb
opsicle-0.2.0 lib/opsicle/stack.rb