Added Automatic Synchronize
This commit is contained in:
1 parent
7519533107
commit
e22cbbd029
5 files changed
+59
-36
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# encoding: utf-8
|
||||
namespace :synchronize do
|
||||
desc "synchronize tasks"
|
||||
task :data => :environment do
|
||||
p Admin::ImportDataController.new.sync_book_data
|
||||
puts "Book Data Synchronization Complete"
|
||||
p Admin::ImportDataController.new.sync_journal_paper_data
|
||||
puts "Journal Paper Data Synchronization Complete"
|
||||
p Admin::ImportDataController.new.sync_conference_data
|
||||
puts "Conference Data Synchronization Complete"
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user