Sha256: 5e573d04bafb10a57ee8d0e0f5483a41e88cf1790acacb2aa2e27409d5431033

Contents?: true

Size: 608 Bytes

Versions: 42

Compression:

Stored size: 608 Bytes

Contents

module Fog
  module Workflow
    class OpenStack
      class V2
        class Real
          def get_action_execution(execution_id)
            request(
              :expects => 200,
              :method  => "GET",
              :path    => "action_executions/#{execution_id}"
            )
          end
        end

        class Mock
          def get_action_execution(_execution_id)
            response = Excon::Response.new
            response.status = 200
            response.body = {"state" => "running", "id" => "1111"}
            response
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 40 versions & 3 rubygems

Version Path
fog-openstack-0.1.9 lib/fog/openstack/requests/workflow_v2/get_action_execution.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/workflow_v2/get_action_execution.rb