Class: BuildBuddy::Watcher
- Inherits:
-
Object
- Object
- BuildBuddy::Watcher
- Includes:
- Celluloid
- Defined in:
- lib/build_buddy/watcher.rb
Instance Method Summary collapse
-
#initialize(pid) ⇒ Watcher
constructor
A new instance of Watcher.
- #watch_pid ⇒ Object
Constructor Details
#initialize(pid) ⇒ Watcher
Returns a new instance of Watcher.
8 9 10 |
# File 'lib/build_buddy/watcher.rb', line 8 def initialize(pid) @pid = pid end |
Instance Method Details
#watch_pid ⇒ Object
12 13 14 15 |
# File 'lib/build_buddy/watcher.rb', line 12 def watch_pid Process.waitpid2(@pid) Celluloid::Actor[:builder].async.process_done($?) end |