lib/citrin/commands/setup_logrotate.rb in citrin-0.1.3 vs lib/citrin/commands/setup_logrotate.rb in citrin-0.1.4

- old
+ new

@@ -6,10 +6,12 @@ @app = app logfile = rails_app_log_file(@app) template_file = logrotate_config_template(@app) template = ERB.new(File.read(template_file), 0, "%<>") result = template.result(binding) - `sudo sh -c 'echo "#{result}" > /etc/logrotate.d/rails-app-#{@app.name}'` - + output_file = "/etc/logrotate.d/rails-app-#{@app.name}" + puts "Creating logrotate config file at #{output_file}" + puts result + `sudo sh -c 'echo "#{result}" > #{output_file}'` end end end