Skip to content

Instantly share code, notes, and snippets.

@LeShadow
Created November 14, 2014 07:29
Show Gist options
  • Save LeShadow/3550faf19eeadf0a0ac9 to your computer and use it in GitHub Desktop.
Save LeShadow/3550faf19eeadf0a0ac9 to your computer and use it in GitHub Desktop.
+ # 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