Skip to content
Newer
Older
100644 32 lines (25 sloc) 884 Bytes
9768020 @alloy + app skeleton
alloy authored Jul 7, 2011
1 # Add your own tasks in files placed in lib/tasks ending in .rake,
2 # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
4 require File.expand_path('../config/application', __FILE__)
5 require 'rake'
6
7 Appsterdam::Application.load_tasks
ea58d6a @Manfred Add a batched ActiveRecord extension.
Manfred authored Jul 8, 2011
8
9 namespace :test do
10 Rake::TestTask.new('lib') do |t|
11 t.test_files = FileList['test/lib/**/*_test.rb']
12 t.verbose = true
13 end
14 end
15
16 task :test do
17 Rake::Task['test:lib'].invoke
18 end
f074e03 @alloy Add the purge_outdated_classifieds rake task which removes ads that a…
alloy authored Jul 13, 2011
19
20 desc "Deletes the classified ads that are over 30 days old"
21 task :purge_outdated_classifieds => :environment do
22 Classified.purge_outdated!
23 end
fe51776 @Manfred Run the indexer when Cron decides to run.
Manfred authored Jul 22, 2011
24
25 desc 'Have cron index the Sphinx search indices'
e921629 @felixhageloh added rake task to import events
felixhageloh authored Aug 24, 2011
26 task :cron => ['fs:index', 'purge_outdated_classifieds']
27
28 desc "Imports events from external data sources inlcuding past events"
29 task :import_events => :environment do
30 log = Logger.new(STDOUT)
31 Event.sync_events true, log
32 end
Something went wrong with that request. Please try again.