Class: Lolcommits::CaptureMac
Instance Attribute Summary
Attributes inherited from Capturer
#animated_duration, #capture_delay, #capture_device, #frames_location, #snapshot_location, #video_location
Instance Method Summary
collapse
Methods inherited from Capturer
#initialize
Instance Method Details
#capture ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/lolcommits/capturer/capture_mac.rb', line 8
def capture
call_str = "#{executable_path} -q \"#{snapshot_location}\" -w #{capture_delay} #{capture_device_string}"
debug "Capturer: making system call for #{call_str}"
system(call_str)
end
|
#capture_device_string ⇒ Object
4
5
6
|
# File 'lib/lolcommits/capturer/capture_mac.rb', line 4
def capture_device_string
@capture_device.nil? ? nil : "-d \"#{@capture_device}\""
end
|
#executable_path ⇒ Object
19
20
21
|
# File 'lib/lolcommits/capturer/capture_mac.rb', line 19
def executable_path
File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'imagesnap', 'imagesnap')
end
|