12 lines
452 B
Ruby
12 lines
452 B
Ruby
# encoding: utf-8
|
|
namespace :synchronize do
|
|
desc "synchronize tasks"
|
|
task :data => :environment do
|
|
p Admin::ImportDataController.new.sync_book_data_auto
|
|
puts "Book Data Synchronization Complete"
|
|
p Admin::ImportDataController.new.sync_journal_paper_data_auto
|
|
puts "Journal Paper Data Synchronization Complete"
|
|
p Admin::ImportDataController.new.sync_conference_data_auto
|
|
puts "Conference Data Synchronization Complete"
|
|
end
|
|
end |