diff --git a/lib/webconfig.rb b/lib/webconfig.rb index 445d5e3..b6d80fb 100644 --- a/lib/webconfig.rb +++ b/lib/webconfig.rb @@ -1,5 +1,4 @@ #!/usr/bin/env ruby -# -*- ruby -*- # Copyright 2009 Burke Libbey / Chromium 53. Released under MIT License. @@ -24,7 +23,7 @@ class ReloadError < StandardError; end # Get a list of the different servers templates.yml specifies configs for. # example: ["nginx", "apache"] - SERVERS = TEMPLATES.values.map(&:keys).flatten.uniq.map{|s|s.gsub('content_for_','')} + SERVERS = TEMPLATES.values.map{|e|e.keys}.flatten.uniq.map{|s|s.gsub('content_for_','')} def self.run puts "Building configuration..." @@ -153,6 +152,3 @@ def content_for_server(server) end end end - - -Webconfig.run if __FILE__ == $0