Sha256: 1d354eb46b016355027a8bede54b4a9584c1687b7491d91c522054fc9c244f57

Contents?: true

Size: 388 Bytes

Versions: 26

Compression:

Stored size: 388 Bytes

Contents

module Snapshot
  class Simulators
    def self.available_devices
      if not @result
        @result = []
        `instruments -s`.split("\n").each do |current|
          # Example: "iPhone 5 (8.1 Simulator) [C49ECC4A-5A3D-44B6-B9BF-4E25BC326400]"
          @result << current.split(' [').first if current.include?"Simulator"
        end
      end
      return @result
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
snapshot-0.9.2 lib/snapshot/simulators.rb
snapshot-0.9.1 lib/snapshot/simulators.rb
snapshot-0.9.0 lib/snapshot/simulators.rb
snapshot-0.8.0 lib/snapshot/simulators.rb
snapshot-0.7.1 lib/snapshot/simulators.rb
snapshot-0.7.0 lib/snapshot/simulators.rb
snapshot-0.6.1 lib/snapshot/simulators.rb
snapshot-0.6.0 lib/snapshot/simulators.rb
snapshot-0.5.0 lib/snapshot/simulators.rb
snapshot-0.4.13 lib/snapshot/simulators.rb
snapshot-0.4.12 lib/snapshot/simulators.rb
snapshot-0.4.11 lib/snapshot/simulators.rb
snapshot-0.4.10 lib/snapshot/simulators.rb
snapshot-0.4.9 lib/snapshot/simulators.rb
snapshot-0.4.8 lib/snapshot/simulators.rb
snapshot-0.4.7 lib/snapshot/simulators.rb
snapshot-0.4.6 lib/snapshot/simulators.rb
snapshot-0.4.5 lib/snapshot/simulators.rb
snapshot-0.4.4 lib/snapshot/simulators.rb
snapshot-0.4.3 lib/snapshot/simulators.rb