Sha256: 51e651b422375ae6300bb625807bac0feb40699207a7aa954aff19b9d8513844

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

require 'lerna/display'

module Lerna
  class DisplayEnumerator
    def call(xrandr_output = `LC_ALL=C xrandr`)
      xrandr_output.
        scan(/^(?:[A-Z\-]+\d+) (?:dis)?connected/).
        map { |line| Display.parse(line) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lerna-0.1.1 lib/lerna/display_enumerator.rb
lerna-0.1.0 lib/lerna/display_enumerator.rb