Sha256: 69c46bf3262a48f2cda285b0df411f7c3c10eac0c2a40113de727263187ad624
Contents?: true
Size: 631 Bytes
Versions: 6
Compression:
Stored size: 631 Bytes
Contents
module Lolcommits class CaptureCygwin < Capturer def capture commandcam_exe = File.join Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "CommandCam", "CommandCam.exe" # DirectShow takes a while to show... at least for me anyway delaycmd = " /delay 3000" if capture_delay > 0 # CommandCam delay is in milliseconds delaycmd = " /delay #{capture_delay * 1000}" end _, r, _ = Open3.popen3("#{commandcam_exe} /filename `cygpath -w #{snapshot_location}`#{delaycmd}") # looks like we still need to read the output for something to happen r.read end end end
Version data entries
6 entries across 6 versions & 2 rubygems