Navigation Menu

Skip to content

Commit

Permalink
1.8.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Burke Libbey committed Apr 21, 2009
1 parent 3eeb440 commit b4337e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/webconfig.rb
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
# -*- ruby -*-

# Copyright 2009 Burke Libbey / Chromium 53. Released under MIT License.

Expand All @@ -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..."
Expand Down Expand Up @@ -153,6 +152,3 @@ def content_for_server(server)
end
end
end


Webconfig.run if __FILE__ == $0

0 comments on commit b4337e8

Please sign in to comment.