Sha256: 658b9ea616540926aab916a09e563dc8f5558b8cade93271b007e5f034ceedcb

Contents?: true

Size: 521 Bytes

Versions: 115

Compression:

Stored size: 521 Bytes

Contents

require 'pact_broker/repositories'

module PactBroker

  module Labels
    module Service

      extend self

      extend PactBroker::Repositories

      def create args
        pacticipant = pacticipant_repository.find_by_name_or_create args.fetch(:pacticipant_name)
        label_repository.create pacticipant: pacticipant, name: args.fetch(:label_name)
      end

      def find args
        label_repository.find args
      end

      def delete args
        label_repository.delete args
      end
    end
  end
end

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
pact_broker-2.11.0 lib/pact_broker/labels/service.rb
pact_broker-2.10.0 lib/pact_broker/labels/service.rb
pact_broker-2.9.0 lib/pact_broker/labels/service.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/labels/service.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/labels/service.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/labels/service.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/labels/service.rb
pact_broker-2.7.0.beta.2 lib/pact_broker/labels/service.rb
pact_broker-2.7.0.beta.1 lib/pact_broker/labels/service.rb
pact_broker-2.6.0 lib/pact_broker/labels/service.rb
pact_broker-2.5.1 lib/pact_broker/labels/service.rb
pact_broker-2.5.0 lib/pact_broker/labels/service.rb
pact_broker-2.4.2 lib/pact_broker/labels/service.rb
pact_broker-2.4.1 lib/pact_broker/labels/service.rb
pact_broker-2.4.0 lib/pact_broker/labels/service.rb