Sha256: 477ba1c69b046d5ec5b9becc0dffae87335f25dd0ed27b92e6860da15bf645b2

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

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

    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

    private

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolcommits-0.4.1 lib/lolcommits/capture_mac.rb
lolcommits-0.4.1pre2 lib/lolcommits/capture_mac.rb
lolcommits-0.4.1pre1 lib/lolcommits/capture_mac.rb