apache-config-generator/lib/apache/master.rb

25 lines
677 B
Ruby
Raw Normal View History

2010-04-27 20:11:47 +00:00
module Apache
module Master
2010-04-27 20:27:31 +00:00
def modules(*modules, &block)
2010-05-04 21:04:44 +00:00
@config += Modules.build(*modules, &block)
2010-04-27 20:11:47 +00:00
end
def runner(user, group = nil)
2010-04-27 20:27:31 +00:00
user! user
group! group if group
2010-04-27 20:11:47 +00:00
end
2010-04-27 20:27:31 +00:00
def passenger(ruby_root, ruby_version, passenger_version)
2010-05-04 15:48:59 +00:00
load_module 'passenger_module', "#{ruby_root}/lib/ruby/gems/#{ruby_version}/gems/passenger-#{passenger_version}/ext/apache2/mod_passenger.so"
passenger_root "#{ruby_root}/lib/ruby/gems/#{ruby_version}/gems/passenger-#{passenger_version}"
passenger_ruby "#{ruby_root}/bin/ruby"
2010-04-28 20:19:03 +00:00
end
def order(*args)
self << "Order #{args * ','}"
2010-04-27 20:11:47 +00:00
end
2010-04-28 20:19:03 +00:00
alias :order! :order
2010-04-27 20:11:47 +00:00
end
end