lib/providers/vagrant-vb.rb
# https://github.com/rdsubhas/vagrant-faster
# 1/4th of memory, if you have more than 2GB RAM
# 1/2 of the available CPU cores, if you have more than 1 CPU
# or will simply leave the machine defaults as it is
github.com/rdsubhas/vagrant-faster
1/4th of memory, if you have more than 2GB RAM
1/2 of the available CPU cores, if you have more than 1 CPU
or will simply leave the machine defaults as it is
github . com / rdsubhas / vagrant - faster 1 / 4th of memory if you have more than 2GB RAM 1 / 2 of the available CPU cores if you have more than 1 CPU or will simply leave the machine defaults as it is
def resources(provider, host)
        cpus = host.key?(:cpus) ? host[:cpus] : nil
        memory = host.key?(:memory) ? host[:memory] : nil
        unless cpus
            cpus = Utils.cpus
            cpus /= 2 if cpus > 1
        end
        unless memory
            memory = Utils.memory
            memory /= 4 if memory > 2048
        end
        provider.cpus = cpus if cpus.positive?
        provider.memory = memory if memory.positive?
    end
def resources ( provider , host ) cpus = host . key? ( :cpus ) ? host [ :cpus ] : nil memory = host . key? ( :memory ) ? host [ :memory ] : nil unless cpus cpus = Utils . cpus cpus /= 2 if cpus > 1 end unless memory memory = Utils . memory memory /= 4 if memory > 2048 end provider . cpus = cpus if cpus . positive? provider . memory = memory if memory . positive? end
https://github.com/rdsubhas/vagrant-faster
1/4th of memory, if you have more than 2GB RAM
1/2 of the available CPU cores, if you have more than 1 CPU
or will simply leave the machine defaults as it is
https : // github . com / rdsubhas / vagrant - faster 1 / 4th of memory if you have more than 2GB RAM 1 / 2 of the available CPU cores if you have more than 1 CPU or will simply leave the machine defaults as it is
provider
<not_specific>
host
<not_specific>