aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/codifligne.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/codifligne.rake')
-rw-r--r--lib/tasks/codifligne.rake8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/tasks/codifligne.rake b/lib/tasks/codifligne.rake
deleted file mode 100644
index dd5e99370..000000000
--- a/lib/tasks/codifligne.rake
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace :codifligne do
- desc "Sync lines, companies, networks, and group of lines from codifligne"
- task sync: :environment do
- sync = LineReferential.find_by(name: 'CodifLigne').line_referential_syncs.build
- raise "Codifligne:sync aborted - There is already an synchronisation in progress" unless sync.valid?
- sync.save if sync.valid?
- end
-end