Sha256: c95de44c8a9a122ab170b0a848031a6f4bc8b63ff3317310cbcac7b4b1233772
Contents?: true
Size: 830 Bytes
Versions: 10
Compression:
Stored size: 830 Bytes
Contents
module Fog module Compute class Clodo class Real # Move IP-address to specified server. # ==== Paramaters # * server_id<~Integer> - Id of server to move IP to # * ip<~String> - IP-address to move # # ==== Returns # * response<~Excon::Response> # def move_ip_address(server_id, ip) request( :expects => [204], :method => 'GET', :path => "servers/#{server_id}/ips/moveip", :body => MultiJson.encode({'ip'=>"#{ip}"}) ) end end class Mock def move_ip_address(server_id, ip) response = Excon::Response.new response.status = [204] response end end end end end
Version data entries
10 entries across 10 versions & 5 rubygems