Module: Build::Matrix::ClassMethods
- Defined in:
- lib/travis/model/build/matrix.rb
Instance Method Summary collapse
Instance Method Details
#matrix?(config) ⇒ Boolean
13 14 15 |
# File 'lib/travis/model/build/matrix.rb', line 13 def matrix?(config) config.values_at(*ENV_KEYS).compact.any? { |value| value.is_a?(Array) && value.size > 1 } end |
#matrix_keys_for(config) ⇒ Object
17 18 19 20 |
# File 'lib/travis/model/build/matrix.rb', line 17 def matrix_keys_for(config) keys = ENV_KEYS + [:branch] keys & config.keys.map(&:to_sym) end |