Commit 5a1883a66b8133550bebbd9d26920f284af5b4ac

Authored by Leandro Santos
1 parent 1f05bbcc

HOTSPOT: always generate data files in rails root

script/sent_event_report
... ... @@ -4,7 +4,7 @@ require 'net/smtp'
4 4  
5 5 puts 'Iniciando script'
6 6  
7   -file = File.open('event.csv', 'w+')
  7 +file = File.open(File.join(Rails.root,'event.csv'), 'w+')
8 8  
9 9 events = Event.all
10 10 events.map do |event|
... ...
script/sent_proposal_report
... ... @@ -8,7 +8,7 @@ emails.uniq!
8 8  
9 9 puts 'Iniciando script'
10 10  
11   -file = File.open('data.csv', 'w+')
  11 +file = File.open(File.join(Rails.root,'data.csv'), 'w+')
12 12  
13 13 tasks = ProposalsDiscussionPlugin::ProposalTask.all
14 14 count = 0
... ...