repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
removing log dir from .gitignore
[monkeycharger.git]
/
vendor
/
rails
/
railties
/
test
/
mocks
/
fcgi.rb
blob
59260a684fe88540a2a4973314506611f500ce88
1
class FCGI
2
class << self
3
attr_accessor :time_to_sleep
4
attr_accessor :raise_exception
5
attr_accessor :each_cgi_count
6
7
def each_cgi
8
(each_cgi_count || 1).times do
9
sleep(time_to_sleep || 0)
10
raise raise_exception, "Something died" if raise_exception
11
yield "mock cgi value"
12
end
13
end
14
end
15
end