Sha256: 9ad19ef378b011526577dea1fc5a57b0e21fc5aed13aa94b31c7fca59bc5cbae

Contents?: true

Size: 892 Bytes

Versions: 17

Compression:

Stored size: 892 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        # Delete a stack.
        #
        # @param stack_name [String] Name of the stack to delete.
        # @param stack_id [String] ID of the stack to delete.
        #
        # @return [Excon::Response]
        #
        # @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_DeleteStack.html

        def delete_stack(stack_name, stack_id)
          request(
            :expects  => 204,
            :path => "stacks/#{stack_name}/#{stack_id}",
            :method => 'DELETE'
          )
        end
      end

      class Mock
        def delete_stack(stack_name, stack_id)
          self.data[:stacks].delete(stack_id)

          response = Excon::Response.new
          response.status = 204
          response.body = {}
          response
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.27.0 lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.26.0 lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.25.0 lib/fog/openstack/requests/orchestration/delete_stack.rb
nsidc-fog-1.24.1 lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.24.0 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.11 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.10 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.9 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.8 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.7 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.6 lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.23.0 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.4 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.3 lib/fog/openstack/requests/orchestration/delete_stack.rb
ns-fog-1.22.2 lib/fog/openstack/requests/orchestration/delete_stack.rb
fog-1.22.1 lib/fog/openstack/requests/orchestration/delete_stack.rb