Class: Watcher::Process
- Inherits:
-
BasicWatcher
- Object
- BasicWatcher
- Watcher::Process
- Defined in:
- lib/informer/watcher/process.rb
Instance Attribute Summary
Attributes inherited from BasicWatcher
Instance Method Summary collapse
-
#initialize(process, options = {}) ⇒ Process
constructor
A new instance of Process.
- #report ⇒ Object
Constructor Details
#initialize(process, options = {}) ⇒ Process
Returns a new instance of Process.
3 4 5 6 |
# File 'lib/informer/watcher/process.rb', line 3 def initialize(process, = {}) @process = process @handle = [:handle] || @process end |
Instance Method Details
#report ⇒ Object
8 9 10 |
# File 'lib/informer/watcher/process.rb', line 8 def report "#{@handle} is #{running? ? '' : 'not '}running" end |