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
|
||||
|
||||
def call(env)
|
||||
require 'securerandom'
|
||||
env[:domain_name] = env[:root_path].basename.to_s.dup
|
||||
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
|
||||
domain = ProviderLibvirt::Util::Collection.find_matching(
|
||||
|
@ -25,7 +25,7 @@ module VagrantPlugins
|
||||
Config
|
||||
end
|
||||
|
||||
provider 'libvirt' do
|
||||
provider('libvirt', parallel: true) do
|
||||
# Setup logging and i18n
|
||||
setup_logging
|
||||
setup_i18n
|
||||
|
Loading…
Reference in New Issue
Block a user