orbit-basic/app/jobs/sync_db.rb

16 lines
243 B
Ruby
Raw Normal View History

class SyncDb
@queue = :high
def self.perform()
2012-05-08 11:20:53 +00:00
self.start_sync
end
def self.start_sync
task = 'mid_site:sync'
args = []
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
puts "SyncDb Synced"
end
end