add circus support

This commit is contained in:
Andrews Medina
2012-11-29 00:15:01 -02:00
parent 8fe86e98c8
commit 9325f2ca6d
5 changed files with 137 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
require "erb"
require "foreman/export"
class Foreman::Export::Circus < Foreman::Export::Base
def export
super
Dir["#{location}/#{app}*.ini"].each do |file|
clean file
end
write_template "circus/app.ini.erb", "#{app}.ini", binding
end
end