blob: ff0ec75f39a1ba754ff239f6cb7729345e727bc2 (
plain)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
class ChaosController < ActionController::Base
def sleep
duration_s = params[:duration_s] ? params[:duration_s].to_i : 30
Kernel.sleep duration_s
render text: "OK", content_type: 'text/plain'
end
end
|