lib/multi_process/process.rb in multi_process-1.2.0 vs lib/multi_process/process.rb in multi_process-1.2.1

- old
+ new

@@ -1,16 +1,18 @@ # frozen_string_literal: true -require 'active_support/core_ext/module/delegation' +require 'forwardable' module MultiProcess # # Describes a single process that can be configured and run. # # {Process} basically is just a thin wrapper around {ChildProcess}. # class Process + extend Forwardable + # @!group Process # Process title used in e.g. logger attr_reader :title @@ -37,10 +39,10 @@ self.dir = opts[:dir].to_s if opts[:dir] end # Delegate some methods to ChildProcess. # - delegate :exited?, :alive?, :crashed?, :exit_code, :pid, to: :childprocess + delegate %i[exited? alive? crashed? exit_code pid] => :childprocess # Wait until process finished. # # If no timeout is given it will wait definitely. #