Class: RSpecGuard

Inherits:
FSSMGuard show all
Defined in:
lib/workpile/cli.rb

Instance Method Summary collapse

Methods inherited from FSSMGuard

#event, #guard, #watch

Constructor Details

#initializeRSpecGuard

Returns a new instance of RSpecGuard.



48
49
50
51
52
# File 'lib/workpile/cli.rb', line 48

def initialize
  super
  @parent = Workpile::Parent.new
  @parent.spawn_children(3, "ruby #{File.dirname(__FILE__) + "\\workpile_rspec.rb"}")
end

Instance Method Details

#invoke(fname) ⇒ Object



54
55
56
# File 'lib/workpile/cli.rb', line 54

def invoke(fname)
  @parent.request(fname)
end

#on_exitObject



58
59
60
61
# File 'lib/workpile/cli.rb', line 58

def on_exit
  puts "workpile process shutdown..."
  @parent.abort
end