Cleanup launchd exporter

Also suppresses the deprecation warning for the launchd exporter when
using port instead of engine.port_for
This commit is contained in:
Aaron Kalin
2012-09-10 18:21:51 -05:00
parent f6d4badcd2
commit c617ddb3b2
4 changed files with 9 additions and 12 deletions
+1
View File
@@ -7,6 +7,7 @@ class Foreman::Export::Launchd < Foreman::Export::Base
super
engine.each_process do |name, process|
1.upto(engine.formation[name]) do |num|
port = engine.port_for(process, num)
write_template "launchd/launchd.plist.erb", "#{app}-#{name}-#{num}.plist", binding
end
end