vagrant/plugins/guests/freebsd/cap
Seth Vargo 5a4f345363
Use Util::Tempfile when configuring networks
This fixes a fairly large tempfile leak. Vagrant uses a template
renderer to write network configuration files locally to disk. Then,
that temporarily file is uploaded to the remote host and moved into
place. Since Vagrant is such a short-lived process, GC never came along
and cleaned up those tempfiles, resulting in many temporary files being
created through regular Vagrant usage.

The Util::Tempfile class uses a block to ensure the temporary file is
deleted when the block finishes. This API required small tweaks to the
usage, but provides more safety to ensure the files are deleted.
2016-05-28 23:22:34 -04:00
..
change_host_name.rb FreeBSD: Use quotes around hostname in rc.conf 2016-01-13 07:28:42 -02:00
configure_networks.rb Use Util::Tempfile when configuring networks 2016-05-28 23:22:34 -04:00
halt.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
insert_public_key.rb guests/{free,net}bsd: add `insert_public_key` capability 2014-02-04 01:09:29 -03:00
mount_nfs_folder.rb Add back creation of mount point 2014-12-10 10:56:30 -06:00
remove_public_key.rb guests/freebsd: fix call of set -i : missing extension 2015-03-23 13:31:07 +01:00
rsync.rb Change to use pkgng 2015-12-29 14:35:49 +00:00
shell_expand_guest_path.rb guests/{free,net,open}bsd: Add `shell_expand_guest_path` capability 2014-02-02 17:38:24 -03:00