Skip to content

Commit

Permalink
Add aliases in total_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
frdmn committed Sep 21, 2016
1 parent 99f81b7 commit 8f72993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Expand Up @@ -54,7 +54,7 @@ end
static_hosts = %w(servant.dev webserver.dev phpmyadmin.dev phpinfo.dev adminer.dev)
custom_hosts = Dir.glob(File.dirname(__FILE__) + "/public/*").select{|f| File.directory?(f)}.map{|f| File.basename(f)}
custom_aliases = Dir.glob(File.dirname(__FILE__) + "/public/**/servant.json").map{|f| JSON.parse(File.read(f))['server_alias'] if valid_json?(File.read(f))}.compact.join(", ")
total_hosts = [*static_hosts, *custom_hosts]
total_hosts = [*static_hosts, *custom_hosts, *custom_aliases]

###
# Vagrant bootstrap
Expand Down

0 comments on commit 8f72993

Please sign in to comment.