Class: Emberprecompile::Watcher
- Inherits:
-
Object
- Object
- Emberprecompile::Watcher
- Defined in:
- lib/emberprecompile/watcher.rb
Class Method Summary collapse
Class Method Details
.watch ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/emberprecompile/watcher.rb', line 6 def self.watch source = "views/" FSSM.monitor(source) do update do |b, r| print "Change detected in >>>> " + r + "\n\n" Emberprecompile::Compiler.compile end create do |b, r| print "Created >>>> " + r + "\n\n" Emberprecompile::Compiler.compile end delete do |b, r| print "Deleted >>>> " + r + "\n\n" Emberprecompile::Compiler.compile end end end |