Method: Explorer::Process#initialize
- Defined in:
- lib/explorer/process.rb
#initialize(label, command, working_dir: ENV['PWD'], log_watcher: nil, env: {}) ⇒ Process
Log watcher should implement a ‘log’ method which accepts a label and a line of text Log watcher should also be thread-safe or an actor
12 13 14 15 16 17 18 19 20 |
# File 'lib/explorer/process.rb', line 12 def initialize(label, command, working_dir: ENV['PWD'], log_watcher: nil, env: {}) @label = label @command = command @working_dir = File.(working_dir) @log_watcher = log_watcher @env = env @state = :stopped @status = nil end |