mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f69f384872
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
12 lines
257 B
Ruby
12 lines
257 B
Ruby
class FCGI
|
|
class << self
|
|
attr_accessor :time_to_sleep
|
|
attr_accessor :raise_exception
|
|
|
|
def each_cgi
|
|
sleep(time_to_sleep || 0)
|
|
raise raise_exception, "Something died" if raise_exception
|
|
yield "mock cgi value"
|
|
end
|
|
end
|
|
end
|