Class: Lolcommits::CaptureCygwin

Inherits:
CaptureWindows show all
Defined in:
lib/lolcommits/capturer/capture_cygwin.rb

Instance Attribute Summary

Attributes inherited from Capturer

#capture_delay, #capture_device, #capture_duration, #capture_path

Instance Method Summary collapse

Methods inherited from Capturer

#debug, #initialize, #system_call

Constructor Details

This class inherits a constructor from Lolcommits::Capturer

Instance Method Details

#captureObject



5
6
7
8
9
10
# File 'lib/lolcommits/capturer/capture_cygwin.rb', line 5

def capture
  _stdin, stdout, _stderr = Open3.popen3("#{executable_path} /filename `cygpath -w #{capture_path}`#{delay_arg}")

  # need to read the output for something to happen
  stdout.read
end