Created
November 14, 2014 07:29
-
-
Save LeShadow/3550faf19eeadf0a0ac9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ # Updating the hosts file with all the sites that are defined in Homestead.yaml | |
+ if Vagrant.has_plugin?("vagrant-hostsupdater") && settings["hosts_file_additions"] == true | |
+ hosts = [] | |
+ settings["sites"].each do |site| | |
+ hosts.push(site["map"]) | |
+ end | |
+ config.hostsupdater.aliases = hosts | |
+ end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment