lib/tasks/ffcrm/dropbox.rake in fat_free_crm-0.13.6 vs lib/tasks/ffcrm/dropbox.rake in fat_free_crm-0.14.0

- old
+ new

@@ -3,28 +3,26 @@ # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ namespace :ffcrm do namespace :dropbox do - desc "Run dropbox crawler and process incoming emails" - task :run => :environment do + task run: :environment do require "fat_free_crm/mail_processor/dropbox" FatFreeCRM::MailProcessor::Dropbox.new.run(dry_run = false) end namespace :run do desc "[Dry run] - Run dropbox crawler and process incoming emails" - task :dry => :environment do + task dry: :environment do require "fat_free_crm/mail_processor/dropbox" FatFreeCRM::MailProcessor::Dropbox.new.run(dry_run = true) end end desc "Set up email dropbox based on currently loaded settings" - task :setup => :environment do + task setup: :environment do require "fat_free_crm/mail_processor/dropbox" FatFreeCRM::MailProcessor::Dropbox.new.setup end - end end