Sha256: e0f24b31a36c6acf9a3cf024996abc44936a1c30739fe3e6ac0facccd0dd780c

Contents?: true

Size: 523 Bytes

Versions: 42

Compression:

Stored size: 523 Bytes

Contents

module Fog
  module Workflow
    class OpenStack
      class V2
        class Real
          def delete_environment(name)
            request(
              :expects => 204,
              :method  => "DELETE",
              :path    => "environments/#{URI.encode(name)}"
            )
          end
        end

        class Mock
          def delete_environment(_name)
            response = Excon::Response.new
            response.status = 204
            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/delete_environment.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/workflow_v2/delete_environment.rb