Sha256: f532f725fc43d6f37d19bc472ad65d8a828f2f06ada5887393c7ea6a888752c9

Contents?: true

Size: 923 Bytes

Versions: 24

Compression:

Stored size: 923 Bytes

Contents

require 'fog/rackspace/models/orchestration/stack'

module Fog
  module Rackspace
    class Orchestration
      class Stacks < Fog::Collection
        model Fog::Rackspace::Orchestration::Stack

        def all(options={})
          data = service.list_stack_data(options).body['stacks']
          load(data)
        end

        def get(name, id)
          data = service.show_stack_details(name, id).body['stack']
          new(data)
        rescue Fog::Rackspace::Orchestration::NotFound
          nil
        end

        def adopt(options={})
          service.create_stack(options)
        end

        def create(options={})
          service.create_stack(options).body['stack']
        end

        def preview(options={})
          data = service.preview_stack(options).body['stack']
          new(data)
        end

        def build_info
          service.build_info.body
        end
      end
    end
  end
end

Version data entries

24 entries across 22 versions & 4 rubygems

Version Path
fog-rackspace-0.1.6 lib/fog/rackspace/models/orchestration/stacks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/stacks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/stacks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.5 lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.4 lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.3 lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.2 lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.1 lib/fog/rackspace/models/orchestration/stacks.rb
fog-rackspace-0.1.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.37.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.36.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.35.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-2.0.0.pre.0 lib/fog/rackspace/models/orchestration/stacks.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.34.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.33.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.32.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.31.0 lib/fog/rackspace/models/orchestration/stacks.rb
fog-1.30.0 lib/fog/rackspace/models/orchestration/stacks.rb