repo.or.cz
/
god.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
finish lifecycle conditions handling and add flapper condition
[god.git]
/
lib
/
god
/
conditions
/
always.rb
blob
7340a0f86107db0708214c831fd6b722959c3a4c
1
module God
2
module Conditions
3
4
class Always < PollCondition
5
attr_accessor :what
6
7
def valid?
8
valid = true
9
valid &= complain("You must specify the 'what' attribute for :always") if self.what.nil?
10
valid
11
end
12
13
def test
14
@what
15
end
16
end
17
18
end
19
end