Sha256: 001a1c4cf2791ecdcd53565c7fa0628591f61e35cdeae6d246f9c8d6abfc08fe
Contents?: true
Size: 943 Bytes
Versions: 30
Compression:
Stored size: 943 Bytes
Contents
module Fog module NewServers class Real # Boot a new server # # ==== Parameters # * planId<~String> - The id of the plan to boot the server with # * options<~Hash>: optional extra arguments # * imageId<~String> - Optional image to boot server from # * name<~String> - Name to boot new server with # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'server'<~Hash>: # * 'id'<~String> - Id of the image # def add_server(plan_id, options = {}) request( :expects => 200, :method => 'GET', :parser => Fog::ToHashDocument.new, :path => 'api/addServer', :query => {'planId' => plan_id}.merge!(options) ) end end class Mock def add_server(server_id) Fog::Mock.not_implemented end end end end
Version data entries
30 entries across 30 versions & 2 rubygems