Class: PactBroker::Matrix::ParseCanIDeployQuery
- Inherits:
-
Object
- Object
- PactBroker::Matrix::ParseCanIDeployQuery
- Defined in:
- lib/pact_broker/matrix/parse_can_i_deploy_query.rb
Class Method Summary collapse
Class Method Details
.call(params) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pact_broker/matrix/parse_can_i_deploy_query.rb', line 6 def self.call params selector = {} = { 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) [:tag] = params[:to] end return [selector], end |