Class: VagrantPlugins::Fsevents::Alerter
- Inherits:
-
Object
- Object
- VagrantPlugins::Fsevents::Alerter
- Defined in:
- lib/vagrant-fsevents/alerter.rb
Overview
Place to store messages that will be seen by the user
Instance Method Summary collapse
- #event(event) ⇒ Object
-
#watching(machine, rel_path) ⇒ Object
Alert the user to a successful folder watch start.
Instance Method Details
#event(event) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vagrant-fsevents/alerter.rb', line 10 def event(event) word = 'Changed' if event.type == :modified word = 'Added' if event.type == :added word = 'Removed' if event.type == :removed event.watch[:machine].ui.info( "fsevents: #{word}: #{event.relative_path}" ) end |
#watching(machine, rel_path) ⇒ Object
Alert the user to a successful folder watch start
6 7 8 |
# File 'lib/vagrant-fsevents/alerter.rb', line 6 def watching(machine, rel_path) machine.ui.info("fsevents: Watching #{rel_path}") end |