Sha256: 226e9bf02f5aeb1e293ca532d9dbda7d6c0f33fb528e2ca0b0c1bde8906eb92c
Contents?: true
Size: 780 Bytes
Versions: 43
Compression:
Stored size: 780 Bytes
Contents
module Fog module Compute class CloudSigma class Real def create_server(data) create_request("servers/", data) end end class Mock def create_server(data) uuid = self.class.random_uuid defaults = {'uuid' => uuid, 'status' => 'stopped', 'smp' => 1, 'hv_relaxed' => false, 'hv_tsc' => false, 'enable_numa' => false, 'cpus_instead_of_cores' => false, 'drives' => [], 'nics' => [], 'tags' => [] } mock_create(:servers, 202, data, uuid, defaults) end end end end end
Version data entries
43 entries across 41 versions & 6 rubygems
Version | Path |
---|---|
ns-fog-1.22.3 | lib/fog/cloudsigma/requests/create_server.rb |
ns-fog-1.22.2 | lib/fog/cloudsigma/requests/create_server.rb |
fog-1.22.1 | lib/fog/cloudsigma/requests/create_server.rb |