lib/video_converter/converter.rb
# Portability method. Executes a foregrounded convert_videos process as a background task,
# similar to how Kernel#fork is used when available.
Portability method. Executes a foregrounded convert_videos process as a background task,
similar to how Kernel#fork is used when available.
Portability method . Executes a foregrounded convert_videos process as a background task similar to how Kernel#fork is used when available .
def run_in_background
      FileUtils.rm_rf @options.log_folder
      FileUtils.mkdir_p @options.log_folder
      pid = spawn(*cli_command, %i[err out] => File.join(@options.log_folder, 'convert_videos.log'))
      nice_process pid
      report_process_priority pid
      pid
    end
def run_in_background FileUtils . rm_rf @options . log_folder FileUtils . mkdir_p @options . log_folder pid = spawn ( * cli_command , %i[ err out ] => File . join ( @options . log_folder , 'convert_videos.log' ) ) nice_process pid report_process_priority pid pid end
Portability method.
Portability method .