# File lib/headless/video/video_recorder.rb, line 56 def stop_and_save(path) CliUtil.kill_process(@pid_file_path, :wait => true) if File.exists? @tmp_file_path begin FileUtils.mv(@tmp_file_path, path) rescue Errno::EINVAL nil end end end