Sha256: b98970e1b11ea9eaef81f6ba0077512a0209546d24b9433ba3bc2b9ef397aaaf
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
if defined? Encoding Encoding.default_external = Encoding::UTF_8 end module Resque class ServerNoAct < Server dir = File.dirname(File.expand_path(__FILE__)) if respond_to? :public_folder set :public_folder, "#{dir}/server_no_act/public" else set :public, "#{dir}/server_no_act/public" end set :static, true def show_access_denied erb File.read(File.join(File.dirname(__FILE__), "server_no_act/views/no_act.erb")) end get "/no_act" do show_access_denied end # Resque::Server Base post "/queues/:id/remove" do redirect u('no_act') end post "/failed/clear" do redirect u('no_act') end post "/failed/requeue/all" do redirect u('no_act') end get "/failed/requeue/:index/?" do redirect u('no_act') end get "/failed/remove/:index/?" do redirect u('no_act') end # Resque::Retry post '/retry/:timestamp/remove' do redirect u('no_act') end post '/retry/:timestamp/jobs/:id/remove' do redirect u('no_act') end # Resque::Scheduler post "/schedule/requeue" do redirect u('no_act') end post "/delayed/queue_now" do redirect u('no_act') end post "/delayed/clear" do redirect u('no_act') end # Resque::Cleaner post "/cleaner_exec" do redirect u('no_act') end get "/cleaner_dump" do redirect u('no_act') end # Resque::History post "/history/clear" do redirect u('no_act') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-web_no_act-0.2.2 | lib/resque/server_no_act.rb |