Sha256: 55da4a7dc8317ec66f3227908252ca38abc87d48c840b8bf864ef64dcbdf48db

Contents?: true

Size: 456 Bytes

Versions: 15

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Lolcommits
  class CaptureMac < Capturer
    def capture
      system_call "#{executable_path} -q \"#{capture_path}\" -w #{capture_delay} #{capture_device_string}"
    end

    private

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

    def executable_path
      File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'imagesnap', 'imagesnap')
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lolcommits-0.17.2 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.17.1 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.17.0 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.5 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.4 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.3 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.2 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.1 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.0 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.16.0.pre1 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.15.1 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.15.0 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.14.2 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.14.1 lib/lolcommits/capturer/capture_mac.rb
lolcommits-0.14.0 lib/lolcommits/capturer/capture_mac.rb