Sha256: 69d345e368c54f961d5f2dbc17af7b49f8e1cb1e29f4b692f35c78789d91d7a0
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 Bytes
Contents
require 'pact_broker/repositories' module PactBroker module Versions class Service extend PactBroker::Repositories def self.find_by_pacticipant_name_and_number params version_repository.find_by_pacticipant_name_and_number params.fetch(:pacticipant_name), params.fetch(:pacticipant_version_number) end def self.delete version tag_repository.delete_by_version_id version.id pact_repository.delete_by_version_id version.id version_repository.delete_by_id version.id end def self.find_versions_by_selector selectors selectors.collect do | selector | pacticipant_name, type, number = selector.split("/") version_repository.find_by_pacticipant_name_and_number pacticipant_name, number end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.7.0.beta.2 | lib/pact_broker/versions/service.rb |
pact_broker-2.7.0.beta.1 | lib/pact_broker/versions/service.rb |