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.65.0 lib/pact_broker/labels/service.rb
pact_broker-2.64.0 lib/pact_broker/labels/service.rb
pact_broker-2.63.0 lib/pact_broker/labels/service.rb
pact_broker-2.62.0 lib/pact_broker/labels/service.rb
pact_broker-2.61.0 lib/pact_broker/labels/service.rb
pact_broker-2.60.1 lib/pact_broker/labels/service.rb
pact_broker-2.60.0 lib/pact_broker/labels/service.rb
pact_broker-2.59.2 lib/pact_broker/labels/service.rb
pact_broker-2.59.1 lib/pact_broker/labels/service.rb
pact_broker-2.59.0 lib/pact_broker/labels/service.rb
pact_broker-2.58.3 lib/pact_broker/labels/service.rb
pact_broker-2.58.2 lib/pact_broker/labels/service.rb
pact_broker-2.58.0 lib/pact_broker/labels/service.rb
pact_broker-2.57.0 lib/pact_broker/labels/service.rb
pact_broker-2.56.1 lib/pact_broker/labels/service.rb
pact_broker-2.56.0 lib/pact_broker/labels/service.rb
pact_broker-2.55.0 lib/pact_broker/labels/service.rb
pact_broker-2.54.0 lib/pact_broker/labels/service.rb
pact_broker-2.53.0 lib/pact_broker/labels/service.rb
pact_broker-2.52.2 lib/pact_broker/labels/service.rb