mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #61 from sciurus/0.0.7_parallel
Enable Parallelization
This commit is contained in:
commit
15a11146a6
@ -9,9 +9,10 @@ module VagrantPlugins
|
|||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
|
require 'securerandom'
|
||||||
env[:domain_name] = env[:root_path].basename.to_s.dup
|
env[:domain_name] = env[:root_path].basename.to_s.dup
|
||||||
env[:domain_name].gsub!(/[^-a-z0-9_]/i, "")
|
env[:domain_name].gsub!(/[^-a-z0-9_]/i, "")
|
||||||
env[:domain_name] << "_#{Time.now.to_i}"
|
env[:domain_name] << "_#{SecureRandom.hex}"
|
||||||
|
|
||||||
# Check if the domain name is not already taken
|
# Check if the domain name is not already taken
|
||||||
domain = ProviderLibvirt::Util::Collection.find_matching(
|
domain = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
|
@ -25,7 +25,7 @@ module VagrantPlugins
|
|||||||
Config
|
Config
|
||||||
end
|
end
|
||||||
|
|
||||||
provider 'libvirt' do
|
provider('libvirt', parallel: true) do
|
||||||
# Setup logging and i18n
|
# Setup logging and i18n
|
||||||
setup_logging
|
setup_logging
|
||||||
setup_i18n
|
setup_i18n
|
||||||
|
Loading…
Reference in New Issue
Block a user