From 7f3f81422edd2cd0d9e982d5ab0dc20917cde65a Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 1 Jan 2013 16:24:02 -0500 Subject: [PATCH] don't make log dirs, plz --- lib/foreman/export/initscript.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/foreman/export/initscript.rb b/lib/foreman/export/initscript.rb index 0ab681b..1fa403c 100644 --- a/lib/foreman/export/initscript.rb +++ b/lib/foreman/export/initscript.rb @@ -2,18 +2,9 @@ require "erb" require "foreman/export" class Foreman::Export::Initscript < Foreman::Export::Base - def export - - #super error("Must specify a location") unless location FileUtils.mkdir_p(location) rescue error("Could not create: #{location}") - FileUtils.mkdir_p(log) rescue error("Could not create: #{log}") -# begin -# FileUtils.chown(user, nil, log) -# rescue Exception => e -# error("Could not chown #{log} to #{user} - #{e.message}") -# end name = "initscript/master.erb" name_without_first = name.split("/")[1..-1].join("/") @@ -24,9 +15,6 @@ class Foreman::Export::Initscript < Foreman::Export::Base path = File.read(matchers.detect { |m| File.exists?(m) }) compiled = ERB.new(path).result(binding) write_file "#{app}", compiled -# path = export_template name -# write_template "initscript/master.erb", "#{app}", binding end - end