vagrant-hostmanager/lib/vagrant-hostmanager
Jeremiah Snapp 1cb7fc9b57 Add hooks & define active/offline as running/not
Hosts entries shouldn't only be added/removed upon creation/destruction.
The persistence of /etc/hosts entries while a vm is in a halted or
suspended state is undesirable especially when hostmanager.manage_host
is set to true. That would mean your host's /etc/hosts would retain
entries even if you aren't currently using a vm.  The vm would have to
be destroyed for the entry to be removed from the host's /etc/hosts.

Adding hooks for halt, resume and suspend commands and changing the
concept of active and offline states from created or not_created to
running or not running allows a vm's entry to be added when it is put
in a running state and removed when it is not running.

The hostmanager.include_offline can be set to true if one still desires
to have not_created or not running machines' entries included in the
/etc/hosts file.
2013-08-12 12:16:40 -04:00
..
action Add hooks & define active/offline as running/not 2013-08-12 12:16:40 -04:00
action.rb Finish support for managing host /etc/hosts file. 2013-06-20 12:54:20 -04:00
command.rb Finish support for managing host /etc/hosts file. 2013-06-20 12:54:20 -04:00
config.rb Fix issue #26. 2013-07-19 11:40:01 -04:00
errors.rb Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00
hosts_file.rb Add hooks & define active/offline as running/not 2013-08-12 12:16:40 -04:00
plugin.rb Add hooks & define active/offline as running/not 2013-08-12 12:16:40 -04:00
provisioner.rb Finish support for managing host /etc/hosts file. 2013-06-20 12:54:20 -04:00
version.rb Fix issue #26. 2013-07-19 11:40:01 -04:00