lib/vcloud/core/vm.rb
def update_cpu_count(new_cpu_count)
        return if new_cpu_count.nil?
        return if new_cpu_count.to_i == 0
        unless cpu.to_i == new_cpu_count.to_i
          Vcloud::Core::Fog::ServiceInterface.new.put_cpu(id, new_cpu_count)
        end
      end
# Update the number of CPUs in VM
#
# @param new_cpu_count [Integer] The number of virtual CPUs to allocate
# @return [Boolean] return true or throw an error
Update the number of CPUs in VM
Update the number of CPUs in VM
def update_cpu_count(new_cpu_count)
        return if new_cpu_count.nil?
        return if new_cpu_count.to_i == 0
        unless cpu.to_i == new_cpu_count.to_i
          Vcloud::Core::Fog::ServiceInterface.new.put_cpu(id, new_cpu_count)
        end
      end
def update_cpu_count ( new_cpu_count ) return if new_cpu_count . nil? return if new_cpu_count . to_i == 0 unless cpu . to_i == new_cpu_count . to_i Vcloud :: Core :: Fog :: ServiceInterface . new . put_cpu ( id , new_cpu_count ) end end
Update the number of CPUs in VM
Update the number of CPUs in VM
return true or throw an error
return true or throw an error
Boolean
new_cpu_count
The number of virtual CPUs to allocate
The number of virtual CPUs to allocate