Commit Graph

10 Commits

Author SHA1 Message Date
Shawn Dahlen 064d9b8658 Clean up plugin configuration and add comments.
This commit cleaned up the plugin's configuration and added code
comments for the hosts_file module. Additionally, display messages were
re-organized based on the single action.

The command still requires code to validate the configuration before
execution.

This closes pull request #18. Thanks to @b2jrock for his contribution.
2013-06-19 12:11:05 -04:00
Shawn Dahlen a39877ac27 Add support for managing host /etc/hosts file.
This commit also include preservation original /etc/hosts file on
guest machines.
2013-06-18 17:26:29 -04:00
Shawn Dahlen 264856478f Fix config validation.
This commit fixes issue #5. Additionally, it deactivates the auto
update behavior by default. Users must set `enabled` to true to activate
auto updates for the hosts file.
2013-04-27 08:13:26 -04:00
Shawn Dahlen ba0decdaa2 update vagrant dependency to 1.2.1 2013-04-26 10:24:01 -04:00
Shawn Dahlen 33c391cfe0 Implement check for already active machine.
This commit re-instates the behavior of auto-updating the
/etc/hosts file on each active machine. If machine is already
active, no update will occur.
2013-04-08 13:20:22 -04:00
Shawn Dahlen 39c197d7cc Implement command to update /etc/hosts files.
This commit disables automatic updates by default instead preferring
the user to execute the hostmanager sub-command. The user can enable
auto updates via configuration.
2013-04-06 08:59:07 -04:00
Shawn Dahlen 5865b1ac27 Check if machines are ready for SSH communication. 2013-04-04 16:52:12 -04:00
Shawn Dahlen e08fc6a811 Fix hook appending to up and destroy actions. 2013-04-04 15:23:55 -04:00
Shawn Dahlen 693f6a3181 Cleaned up project structure for running tests. 2013-03-27 16:13:22 -04:00
Shawn Dahlen 665b96c044 Proof-of-concept support for managing /etc/hosts.
Hooks into the up and destroy commands to manage changes to
the /etc/hosts file on active machines.
2013-03-27 15:38:08 -04:00