Method: Pushify::Server#run
- Defined in:
- lib/pushify/server.rb
#run ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/pushify/server.rb', line 24 def run if (!Pushify::Juggernaut) puts "Juggernaut needs to be running for autospec to work" return end begin loop do wait_for_changes files = find_files_to_broadcast self.last_mtime = files.values.map {|d| d[:mtime] }.max broadcast_changes(files) end rescue Interrupt puts # Quit with ^C end end |