mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
remove temp dir after package creation
This commit is contained in:
@@ -41,6 +41,7 @@ module VagrantPlugins
|
|||||||
File.write(@tmp_dir + '/Vagrantfile',vagrantfile_content)
|
File.write(@tmp_dir + '/Vagrantfile',vagrantfile_content)
|
||||||
assebmle_box(boxname)
|
assebmle_box(boxname)
|
||||||
FileUtils.mv(@tmp_dir + '/' + boxname, '../' + boxname)
|
FileUtils.mv(@tmp_dir + '/' + boxname, '../' + boxname)
|
||||||
|
FileUtils.rm_rf(@tmp_dir)
|
||||||
env[:ui].info('Box created')
|
env[:ui].info('Box created')
|
||||||
env[:ui].info('You can now add the box:')
|
env[:ui].info('You can now add the box:')
|
||||||
env[:ui].info("vagrant box add #{boxname} --name any_comfortable_name")
|
env[:ui].info("vagrant box add #{boxname} --name any_comfortable_name")
|
||||||
|
|||||||
Reference in New Issue
Block a user