Sha256: f3b496790bcb7ba898bfb33b4c05a8ba112569573fa6301496a9d5195837dd50
Contents?: true
Size: 695 Bytes
Versions: 43
Compression:
Stored size: 695 Bytes
Contents
require 'rack/utils' require 'pact_broker/matrix/unresolved_selector' module PactBroker module Matrix class ParseCanIDeployQuery def self.call params selector = PactBroker::Matrix::UnresolvedSelector.new options = { latestby: 'cvp', latest: true } if params[:pacticipant].is_a?(String) selector.pacticipant_name = params[:pacticipant] end if params[:version].is_a?(String) selector.pacticipant_version_number = params[:version] end if params[:to].is_a?(String) options[:tag] = params[:to] end return [selector], options end end end end
Version data entries
43 entries across 43 versions & 1 rubygems