Module: Adminix::LogWatchHandler
- Defined in:
- lib/adminix/log_watch_handler.rb
Instance Method Summary collapse
Instance Method Details
#file_deleted ⇒ Object
14 15 16 |
# File 'lib/adminix/log_watch_handler.rb', line 14 def file_deleted #puts "#{path} deleted" end |
#file_modified ⇒ Object
3 4 5 6 7 8 |
# File 'lib/adminix/log_watch_handler.rb', line 3 def file_modified #puts "#{path} modified" unless Service.instance.syncing_logs Service.instance.new_logs = true end end |
#file_moved ⇒ Object
10 11 12 |
# File 'lib/adminix/log_watch_handler.rb', line 10 def file_moved #puts "#{path} moved" end |
#unbind ⇒ Object
18 19 20 |
# File 'lib/adminix/log_watch_handler.rb', line 18 def unbind #puts "#{path} monitoring ceased" end |