lib/pact_broker/matrix/deployment_status_summary.rb
# Find the resolved version selector that caused the matrix row with the
# specified pacticipant name and version number to be returned in the query.
#
# @return [PactBroker::Matrix::ResolvedSelector]
Find the resolved version selector that caused the matrix row with the
specified pacticipant name and version number to be returned in the query.
Find the resolved version selector that caused the matrix row with the specified pacticipant name and version number to be returned in the query .
def selector_for(pacticipant_name, pacticipant_version_number)
        found = resolved_selectors.select{ | s| s.pacticipant_name == pacticipant_name }
        if found.size == 1
          found.first
        elsif pacticipant_version_number
          found.find{ |s| s.pacticipant_version_number == pacticipant_version_number } || dummy_selector_for(pacticipant_name)
        else
          dummy_selector_for(pacticipant_name)
        end
      end
def selector_for ( pacticipant_name , pacticipant_version_number ) found = resolved_selectors . select { | s | s . pacticipant_name == pacticipant_name } if found . size == 1 found . first elsif pacticipant_version_number found . find { | s | s . pacticipant_version_number == pacticipant_version_number } || dummy_selector_for ( pacticipant_name ) else dummy_selector_for ( pacticipant_name ) end end
Find the resolved version selector that caused the matrix row with the
specified pacticipant name and version number to be returned in the query.
Find the resolved version selector that caused the matrix row with the specified pacticipant name and version number to be returned in the query .
None
PactBroker::Matrix::ResolvedSelector
pacticipant_name
pacticipant_version_number