Skip to content

Instantly share code, notes, and snippets.

@starrhorne
Created April 19, 2010 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starrhorne/371226 to your computer and use it in GitHub Desktop.
Save starrhorne/371226 to your computer and use it in GitHub Desktop.
task :cron => :environment do
@config = YAML.load_file("#{RAILS_ROOT}/config/helpdesk.yml")
@config = @config["EMAIL"]["incoming"][RAILS_ENV].to_options
@fetcher = Fetcher.create({:receiver => Helpdesk::TicketNotifier}.merge(@config))
@fetcher.fetch
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment