Sha256: a19de1ace4514be843ac7d9e7abb981984ba0c58448905640ef723305c9d0f2a

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

module Fog
  module Compute
    class  XenServer

      class Real

        def shutdown_server( vm_ref, stype = 'clean' )
          @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "VM.#{stype}_shutdown"}, vm_ref)
        end

      end

      class Mock

        def shutdown_server( vm_ref )
          Fog::Mock.not_implemented
        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-xenserver-0.0.1.alpha2 lib/fog/xenserver/requests/compute/shutdown_server.rb
fog-xenserver-0.0.1.alpha lib/fog/xenserver/requests/compute/shutdown_server.rb
fog-1.22.0 lib/fog/xenserver/requests/compute/shutdown_server.rb
fog-1.21.0 lib/fog/xenserver/requests/compute/shutdown_server.rb