aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/reflex.rake
diff options
context:
space:
mode:
authorcedricnjanga2018-05-28 05:53:05 -0700
committercedricnjanga2018-05-28 05:53:05 -0700
commit26d6a5df823659f39ed7c48e0dc4c11f1ff3dc92 (patch)
tree446e7d54ed8664f65a29850eaea18ebbd372f4ad /lib/tasks/reflex.rake
parent11975edc476262e2e593b530d34ba053989dc8c2 (diff)
downloadchouette-core-26d6a5df823659f39ed7c48e0dc4c11f1ff3dc92.tar.bz2
Refs #6962 Fix wrong syntac in schedule file & remove unnecessary rake files6962-add-cron-class
Diffstat (limited to 'lib/tasks/reflex.rake')
-rw-r--r--lib/tasks/reflex.rake8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/tasks/reflex.rake b/lib/tasks/reflex.rake
deleted file mode 100644
index 67496cee0..000000000
--- a/lib/tasks/reflex.rake
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace :reflex do
- desc "Sync data from Reflex api"
- task sync: :environment do
- sync = StopAreaReferential.find_by(name: 'Reflex').stop_area_referential_syncs.build
- raise "reflex:sync aborted - There is already an synchronisation in progress" unless sync.valid?
- sync.save if sync.valid?
- end
-end