Sha256: 9881ed7d44d473a6c691feb50ce7346d9dbf981a2af7e289cd2b8362f38ca0b5

Contents?: true

Size: 686 Bytes

Versions: 13

Compression:

Stored size: 686 Bytes

Contents

# coding: utf-8

module Fog
  module Compute
    class SakuraCloud
      class Real
        def boot_server( id )
          request(
            :headers => {
              'Authorization' => "Basic #{@auth_encode}"
            },
            :expects  => [200],
            :method => 'PUT',
            :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/server/#{id}/power"
          )
          true
        end
      end # Real

      class Mock
        def boot_server( id )
          response = Excon::Response.new
          response.status = 200
          response.body = {
          }
          response
        end
      end
    end # SakuraCloud
  end # Volume
end # Fog

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-sakuracloud-1.7.5/lib/fog/sakuracloud/requests/compute/boot_server.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-sakuracloud-1.7.5/lib/fog/sakuracloud/requests/compute/boot_server.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-sakuracloud-1.7.5/lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.5 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.4 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.3 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.2 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.1 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.7.0 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.6.0 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.5.2 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.5.1 lib/fog/sakuracloud/requests/compute/boot_server.rb
fog-sakuracloud-1.5.0 lib/fog/sakuracloud/requests/compute/boot_server.rb