Class: MachineGun

Inherits:
Object
  • Object
show all
Defined in:
lib/machinegun.rb

Class Method Summary collapse

Class Method Details

.runObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/machinegun.rb', line 6

def self.run
  pid = start_server
  
  FileWatcher.new("./**/*.rb").watch do
    Process.kill "INT", pid
    Process.wait pid
    
    pid = start_server
  end
end