Sha256: b2beeae9dacce0fd743a5c77fd7491811f089dfbf534bf103a0c505548b6bfac

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

module Fog
  module Compute
    class DigitalOcean
      class Real

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

      end

      class Mock

        def power_off_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_off_server.rb
cifrado-0.2.0 vendor/fog/lib/fog/digitalocean/requests/compute/power_off_server.rb
cifrado-0.1.3 vendor/fog/lib/fog/digitalocean/requests/compute/power_off_server.rb
cifrado-0.1.2 vendor/fog/lib/fog/digitalocean/requests/compute/power_off_server.rb
cifrado-0.1.1 vendor/fog/lib/fog/digitalocean/requests/compute/power_off_server.rb
cifrado-0.1 vendor/fog/lib/fog/digitalocean/requests/compute/power_off_server.rb