class Lolcommits::CaptureMac

Public Instance Methods

capture() click to toggle source
# File lib/lolcommits/capturer/capture_mac.rb, line 5
def capture
  system_call "#{executable_path} -q \"#{capture_path}\" -w #{capture_delay} #{capture_device_string}"
end

Private Instance Methods

capture_device_string() click to toggle source
# File lib/lolcommits/capturer/capture_mac.rb, line 11
def capture_device_string
  capture_device.nil? ? '' : "-d \"#{capture_device}\""
end
executable_path() click to toggle source
# File lib/lolcommits/capturer/capture_mac.rb, line 15
def executable_path
  File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'imagesnap', 'imagesnap')
end