Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (18 sloc) 594 Bytes
#!/usr/bin/env ruby
require File.join(File.dirname(__FILE__), '..', 'config', 'environment')
require 'net/imap'
require 'net/http'
require 'rubygems'
require 'logger'
log =
unless ARGV.empty?
# create the report and email it
success = Donation.create_donation_report(ARGV)
if success + " Done and going to sleep..."
else "Oops, you have to run the script with unsupported characters. Please check the command and try again."
else "Oops, you need to provide the interval you wish to create a report for."