Skip to content

Commit

Permalink
Fixes file creation method (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Sep 15, 2016
1 parent c6aa037 commit b11b1e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/endowed_funds_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def self.ol_cat_key(fund)
def write_keys(catalog_keys)
symphony_file = "endow#{Time.zone.now.strftime('%y%m%d%H%M%S%L%1N')}"
symphony_location = "/symphony/Dataload/EndowRpt/#{symphony_file}"
FileUtils.chdir('/symphony/Dataload/EndowRpt/')
FileUtils.touch(symphony_file)
out_file = File.open(symphony_location, 'w')
# FileUtils.chdir('/symphony/Dataload/EndowRpt/')
# FileUtils.touch(symphony_file)
out_file = File.open(symphony_location, 'w+')
out_file.puts(catalog_keys.join("\n"))
out_file.close
end
Expand Down

0 comments on commit b11b1e0

Please sign in to comment.