Browse files

Introduce messages:import rake task.

We've questioned whether loading the Rails environment is sensible,
given the overhead of doing so. We'll discuss this separately.
  • Loading branch information...
1 parent 439b544 commit b73aec8bb285d00544277ce076ecc4eb80f62cbf @chrisroos-and-lazyatom chrisroos-and-lazyatom committed Mar 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/tasks/import.rake
View
5 lib/tasks/import.rake
@@ -0,0 +1,5 @@
+namespace :messages do
+ task :import => :environment do
+ AccountMessageImporter.import_for(ENV["EMAIL"], ENV["PASSWORD"])
+ end
+end

0 comments on commit b73aec8

Please sign in to comment.