2012-01-31 14:43:45 -05:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Vsphere
|
|
|
|
class Real
|
|
|
|
def vm_reconfig_cpus(options = {})
|
2014-05-21 10:28:51 -04:00
|
|
|
raise ArgumentError, "cpus is a required parameter" unless options.key? 'cpus'
|
|
|
|
raise ArgumentError, "instance_uuid is a required parameter" unless options.key? 'instance_uuid'
|
2013-10-21 09:07:24 -04:00
|
|
|
hardware_spec={'numCPUs' => options['cpus'], 'numCoresPerSocket' => options['corespersocket']}
|
2012-01-31 14:43:45 -05:00
|
|
|
vm_reconfig_hardware('instance_uuid' => options['instance_uuid'], 'hardware_spec' => hardware_spec )
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
def vm_reconfig_cpus(options = {})
|
2014-05-21 10:28:51 -04:00
|
|
|
raise ArgumentError, "cpus is a required parameter" unless options.key? 'cpus'
|
|
|
|
raise ArgumentError, "instance_uuid is a required parameter" unless options.key? 'instance_uuid'
|
2013-10-21 09:07:24 -04:00
|
|
|
hardware_spec={'numCPUs' => options['cpus'], 'numCoresPerSocket' => options['corespersocket']}
|
2012-01-31 14:43:45 -05:00
|
|
|
vm_reconfig_hardware('instance_uuid' => options['instance_uuid'], 'hardware_spec' => hardware_spec )
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|