Class: Epi::Triggers::Touch
- Inherits:
-
Epi::Trigger::JobTrigger
- Object
- Epi::Trigger
- Epi::Trigger::JobTrigger
- Epi::Triggers::Touch
- Defined in:
- lib/epi/triggers/touch.rb
Instance Attribute Summary
Attributes inherited from Epi::Trigger
Instance Method Summary collapse
-
#initialize(*args) ⇒ Touch
constructor
A new instance of Touch.
- #message ⇒ Object
- #test ⇒ Object
Methods inherited from Epi::Trigger
#logger, make, #try, #try_with
Constructor Details
#initialize(*args) ⇒ Touch
Returns a new instance of Touch.
5 6 7 8 |
# File 'lib/epi/triggers/touch.rb', line 5 def initialize(*args) super *args update end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/epi/triggers/touch.rb', line 16 def "Path '#{path}' was touched" end |
#test ⇒ Object
10 11 12 13 14 |
# File 'lib/epi/triggers/touch.rb', line 10 def test ino = @ino; mtime = @mtime update ino != @ino || mtime != @mtime end |