Method: CommandExec::Process#initialize
- Defined in:
- lib/command_exec/process.rb
#initialize(options = {}) ⇒ Process
Create a process object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/command_exec/process.rb', line 70 def initialize(={}) @options = { lib_logger: Logger.new($stderr), stderr: [], stdout: [], log_file: [], pid: nil, return_code: nil, reason_for_failure: [], status: :success, executable: nil, }.merge @logger = @options[:lib_logger] @stderr = @options[:stderr] @stdout = @options[:stdout] @status = @options[:status] @log_file = @options[:log_file] @pid = @options[:pid] @reason_for_failure = @options[:reason_for_failure] @return_code = @options[:return_code] @executable = @options[:executable] @start_time = nil @end_time = nil end |