12 lines
437 B
Ruby
12 lines
437 B
Ruby
|
# 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
|