Sha256: 81bd8ec4b503ad3e2f03f347609dc0ad98cb22bcdfaa72e1fd04973e0398eb4e

Contents?: true

Size: 503 Bytes

Versions: 13

Compression:

Stored size: 503 Bytes

Contents

module Sauce
  class TestGroup
    def initialize(platforms)
      @platforms = platforms
      @index = 0
    end

    def next_platform
      platform = @platforms[@index]
      @index += 1
      begin
        caps ={
          'os' => platform[0],
          'browser' => platform[1],
          'version' => platform[2]
        }
        caps.merge!({:caps => platform[3]}) if platform[3]
        caps
      rescue NoMethodError => e
        puts "I don't have any config"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sauce_ruby-3.5.11 lib/sauce/parallel/test_group.rb
sauce_ruby-3.5.10 lib/sauce/parallel/test_group.rb
sauce_ruby-3.5.9 lib/sauce/parallel/test_group.rb
sauce_ruby-3.5.8 lib/sauce/parallel/test_group.rb
sauce_ruby-3.5.7 lib/sauce/parallel/test_group.rb
sauce_ruby-3.5.6 lib/sauce/parallel/test_group.rb
sauce-3.5.6 lib/sauce/parallel/test_group.rb
sauce-3.5.5 lib/sauce/parallel/test_group.rb
sauce-3.5.4 lib/sauce/parallel/test_group.rb
sauce-3.5.3 lib/sauce/parallel/test_group.rb
sauce-3.5.2 lib/sauce/parallel/test_group.rb
sauce-3.5.1 lib/sauce/parallel/test_group.rb
sauce-3.5.0 lib/sauce/parallel/test_group.rb