Sha256: 14d6e13466266d413c6e78e07072e2ad980d2b493edd5399f9b71fb32eac259a

Contents?: true

Size: 595 Bytes

Versions: 37

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true
module Fog
  module Orchestration
    class OpenStack
      class Real
        def cancel_update(stack)
          request(
            :expects => 200,
            :method  => 'POST',
            :path    => "stacks/#{stack.stack_name}/#{stack.id}/actions",
            :body    => Fog::JSON.encode('cancel_update' => nil)
          )
        end
      end

      class Mock
        def cancel_update(_)
          response = Excon::Response.new
          response.status = 200
          response.body = {}
          response
        end
      end
    end
  end
end

Version data entries

37 entries across 35 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.10 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.1.30 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.1.29 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.9 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.1.28 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.8 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.7 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.6 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.5 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.4 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.3 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.2 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.3.0 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.2.4 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.2.3 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.2.2 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.2.1 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-openstack-0.2.0 lib/fog/orchestration/openstack/requests/cancel_update.rb
fog-zj-0.1.28 lib/fog/orchestration/openstack/requests/cancel_update.rb