Sha256: c97cc315c56462284006684907cfc01a4cbbacea12e2e3273582bc201be7f036

Contents?: true

Size: 510 Bytes

Versions: 40

Compression:

Stored size: 510 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

40 entries across 40 versions & 3 rubygems

Version Path
lolcommits-mpv-0.5.3 lib/lolcommits/capture_mac.rb
lolcommits-mpv-0.5.2 lib/lolcommits/capture_mac.rb
lolcommits-0.5.2 lib/lolcommits/capture_mac.rb
lolcommits-0.5.2.pre1 lib/lolcommits/capture_mac.rb
lolcommits-0.5.1 lib/lolcommits/capture_mac.rb
lolcommits-0.5.1.pre2 lib/lolcommits/capture_mac.rb
lolcommits-0.5.0 lib/lolcommits/capture_mac.rb
lolcommits-0.5.0.pre3 lib/lolcommits/capture_mac.rb
lolcommits-0.5.0.pre2 lib/lolcommits/capture_mac.rb
lolcommits-0.5.0.pre1 lib/lolcommits/capture_mac.rb
lolcommits-0.4.6 lib/lolcommits/capture_mac.rb
lolcommits-0.4.6.pre1 lib/lolcommits/capture_mac.rb
lolcommits-0.4.5 lib/lolcommits/capture_mac.rb
lolcommits-0.4.4 lib/lolcommits/capture_mac.rb
acmcommits-1.1.4 lib/lolcommits/capture_mac.rb
acmcommits-1.1.3 lib/lolcommits/capture_mac.rb
acmcommits-1.1.2 lib/lolcommits/capture_mac.rb
acmcommits-1.1.1 lib/lolcommits/capture_mac.rb
acmcommits-1.1.0 lib/lolcommits/capture_mac.rb
lolcommits-0.4.4pre1 lib/lolcommits/capture_mac.rb