Class: Lolcommits::CaptureMac

Inherits:
Capturer
  • Object
show all
Defined in:
lib/lolcommits/capture_mac.rb

Instance Attribute Summary

Attributes inherited from Capturer

#animated_duration, #capture_delay, #capture_device, #font, #frames_location, #snapshot_location, #video_location

Instance Method Summary collapse

Methods inherited from Capturer

#initialize

Constructor Details

This class inherits a constructor from Lolcommits::Capturer

Instance Method Details

#captureObject



7
8
9
10
11
# 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_stringObject



3
4
5
# File 'lib/lolcommits/capture_mac.rb', line 3

def capture_device_string
  @capture_device.nil? ? nil : "-d \"#{@capture_device}\""
end