59
60
61
62
63
64
65
66
67
68
69
|
# File 'app/controllers/myreplicator/home_controller.rb', line 59
def resume
flash[:notice] = "Resume All DR Jobs"
require 'rake'
Rake::Task.load(Rails.root.to_s + "/lib/tasks/" + "maintenance.rake")
resque_reload = Rake::Task['maintenance:start_dr_jobs']
resque_reload.reenable
resque_reload.execute(ENV["RAILS_ENV"])
@redis = Redis.new(:host => Settings[:redis][:host], :port => Settings[:redis][:port])
@redis.set "under_maintenance", "false"
redirect_to :action => 'index'
end
|