class Lolcommits::CaptureMac

Public Instance Methods

capture() click to toggle source
# File lib/lolcommits/capture_mac.rb, line 7
def capture
  call_str = "#{imagesnap_bin} -q \"#{snapshot_location}\" -w #{capture_delay} #{capture_device_string}"
  debug "Capturer: making system call for #{call_str}"
  system(call_str)
end
capture_device_string() click to toggle source
# File lib/lolcommits/capture_mac.rb, line 3
def capture_device_string
  @capture_device.nil? ? nil : "-d \"#{@capture_device}\""
end

Private Instance Methods

imagesnap_bin() click to toggle source
# File lib/lolcommits/capture_mac.rb, line 15
def imagesnap_bin
  File.join(Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "imagesnap", "imagesnap")
end