Revision a53d835a
Added by dustin tsang over 9 years ago
lib/smart_proxy.rb | ||
---|---|---|
require 'root/root'
|
||
require 'facts/facts'
|
||
require 'dns/dns'
|
||
require 'templates/templates'
|
||
require 'tftp/tftp'
|
||
require 'dhcp/dhcp'
|
||
require 'puppetca/puppetca'
|
||
... | ... | |
def http_app
|
||
return nil if SETTINGS.http_port.nil?
|
||
app = Rack::Builder.new do
|
||
::Proxy::Plugins.enabled_plugins.each {|p| instance_eval(p.http_rackup)}
|
||
::Proxy::Plugins.enabled_plugins.each do |p|
|
||
instance_eval(p.http_rackup)
|
||
end
|
||
end
|
||
|
||
Rack::Server.new(
|
Also available in: Unified diff
Refs #969 - Proxy-side changes for serving templates from the proxy
An update to @GregSutcliffe's original PR. Ports his original feature to the new
plugin api.