foreman-export-initscript/lib/foreman/export/initscript.rb
2012-09-11 11:12:40 -04:00

20 lines
303 B
Ruby

require "erb"
require "foreman/export"
class Foreman::Export::Initscript < Foreman::Export::Base
def export
super
Dir["#{location}/#{app}"].each do |file|
say "cleaning up: #{file}"
clean file
end
write_template "initscript/master.erb", "#{app}", binding
end
end