2012-04-18 04:03:28 +00:00
|
|
|
require "erb"
|
|
|
|
require "foreman/export"
|
|
|
|
|
|
|
|
class Foreman::Export::Initscript < Foreman::Export::Base
|
|
|
|
|
|
|
|
def export
|
|
|
|
|
2012-09-11 15:12:40 +00:00
|
|
|
super
|
2012-04-18 04:03:28 +00:00
|
|
|
|
|
|
|
Dir["#{location}/#{app}"].each do |file|
|
|
|
|
say "cleaning up: #{file}"
|
2012-09-11 15:12:40 +00:00
|
|
|
clean file
|
2012-04-18 04:03:28 +00:00
|
|
|
end
|
|
|
|
|
2012-09-11 15:12:40 +00:00
|
|
|
write_template "initscript/master.erb", "#{app}", binding
|
2012-04-18 04:03:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|