APIdock / Ruby
/
method

start_import

ruby latest stable - Class: Shell ::SystemCommand
start_import()
public

No documentation available.

# File lib/shell/system-command.rb, line 84
 def start_import
 notify "Job(%id) start imp-pipe.", @shell.debug?
 _eop = true
 Thread.start {
 begin
 while l = @pipe_in.gets
 @input_queue.push l
 end
 _eop = false
 rescue Errno::EPIPE
 _eop = false
 ensure
 if !ProcessController::USING_AT_EXIT_WHEN_PROCESS_EXIT and _eop
 notify("warn: Process finishing...",
 "wait for Job[%id] to finish pipe importing.",
 "You can use Shell#transact or Shell#check_point for more safe execution.")
 redo
 end
 notify "job(%id}) close imp-pipe.", @shell.debug?
 @input_queue.push :EOF
 @pipe_in.close
 end
 }
 end

AltStyle によって変換されたページ (->オリジナル) /