rec 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -1
- data/lib/rec/state.rb +7 -0
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/rec/state.rb
CHANGED
@@ -46,6 +46,13 @@ class State
|
|
46
46
|
state.release()
|
47
47
|
}
|
48
48
|
|
49
|
+
# shortcut action to notify and release
|
50
|
+
# Good for a single event not requiring immediate action
|
51
|
+
Notify_and_release = Proc.new { |state|
|
52
|
+
Notify.normal(state.generate(:alert))
|
53
|
+
state.release()
|
54
|
+
}
|
55
|
+
|
49
56
|
# A array of Timeouts. A Timeout struct has two elements:
|
50
57
|
# - timestamp at which to expire
|
51
58
|
# - key of the state to be expired
|
metadata
CHANGED