Sha256: aec2ba1fe700e5eca3a9d577021e9d87738b3d0715c1b37b322afd32fb8ec38c

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

module Fog
  module Compute
    class DigitalOcean
      class Real

        def power_cycle_server( id )
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => "droplets/#{id}/power_cycle"
          )
        end

      end

      class Mock

        def power_cycle_server( id )
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb
cifrado-0.2.0 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb
cifrado-0.1.3 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb
cifrado-0.1.2 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb
cifrado-0.1.1 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb
cifrado-0.1 vendor/fog/lib/fog/digitalocean/requests/compute/power_cycle_server.rb