Sha256: bd73a3a514dde26dc191f232c246fe974fa4132adb88a61f26a02864e6f8ba4c

Contents?: true

Size: 411 Bytes

Versions: 4

Compression:

Stored size: 411 Bytes

Contents

module Lolcommits
  class CaptureMac < Capturer
    def capture_device_string
      @capture_device.nil? ? nil : "-d #{@capture_device}"
    end

    def capture
      system("#{imagesnap_bin} -q \"#{snapshot_location}\" -w #{capture_delay} #{capture_device_string}")
    end

    private

    def imagesnap_bin
      File.join(Configuration::LOLCOMMITS_ROOT, "ext", "imagesnap", "imagesnap")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lolcommits-0.3.1 lib/lolcommits/capture_mac.rb
lolcommits-0.3.0 lib/lolcommits/capture_mac.rb
lolcommits-0.3.0.pre2 lib/lolcommits/capture_mac.rb
lolcommits-0.3.0.pre1 lib/lolcommits/capture_mac.rb