Sha256: 5070399154de16af735e5102e2ec7ef0e8f93d88d2d226ddbd06c5decf04464b

Contents?: true

Size: 830 Bytes

Versions: 32

Compression:

Stored size: 830 Bytes

Contents

module Fog
  module Vcloud
    class Compute
      class Real
        def undeploy(vapp_uri, save_state = false)
          # builder = Builder::XmlMarkup.new
          # builder.UndeployVAppParams(:xmlns => 'http://www.vmware.com/vcloud/v1',
          #                            :saveState => save_state) {}
          builder = "<UndeployVAppParams saveState=\"#{save_state.to_s}\" xmlns=\"http://www.vmware.com/vcloud/v1\"/>"

          request(
                  :body     => builder,
                  :expects  => 202,
                  :headers  => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
                  :method   => 'POST',
                  :uri      => vapp_uri + '/action/undeploy',
                  :parse    => true
                  )
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
fog-1.5.0 lib/fog/vcloud/requests/compute/undeploy.rb
rackspace-fog-1.4.2 lib/rackspace-fog/vcloud/requests/compute/undeploy.rb
fog-1.4.0 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
michiels-fog-1.3.1 lib/fog/vcloud/requests/compute/undeploy.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.3.1 lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.3.0 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.2.0 lib/fog/vcloud/requests/compute/undeploy.rb
ktheory-fog-1.1.2 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.1.2 lib/fog/vcloud/requests/compute/undeploy.rb
fog_tractical-1.1.4 lib/fog/vcloud/requests/compute/undeploy.rb
fog_tractical-1.1.3 lib/fog/vcloud/requests/compute/undeploy.rb