Sha256: 2e30078f4483352c4a00da321a7462a7e91e6a40e0cc4481cf21de079a6fbfb1
Contents?: true
Size: 732 Bytes
Versions: 2
Compression:
Stored size: 732 Bytes
Contents
# coding: utf-8 module Fog module Volume class SakuraCloud class Real def attach_disk( disk_id, server_id ) request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :expects => [200], :method => 'PUT', :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/disk/#{disk_id.to_s}/to/server/#{server_id.to_s}" ) end end # Real class Mock def attach_disk( disk_id, server_id ) response = Excon::Response.new response.status = 200 response.body = { } response end end end # SakuraCloud end # Volume end # Fog
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-sakuracloud-1.4.0 | lib/fog/sakuracloud/requests/volume/attach_disk.rb |
fog-sakuracloud-1.3.3 | lib/fog/sakuracloud/requests/volume/attach_disk.rb |