Class: RSpecGuard
Instance Method Summary collapse
-
#initialize ⇒ RSpecGuard
constructor
A new instance of RSpecGuard.
- #invoke(fname) ⇒ Object
- #on_exit ⇒ Object
Methods inherited from FSSMGuard
Constructor Details
#initialize ⇒ RSpecGuard
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_exit ⇒ Object
58 59 60 61 |
# File 'lib/workpile/cli.rb', line 58 def on_exit puts "workpile process shutdown..." @parent.abort end |