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.79.1 lib/pact_broker/labels/service.rb
pact_broker-2.79.0 lib/pact_broker/labels/service.rb
pact_broker-2.78.1 lib/pact_broker/labels/service.rb
pact_broker-2.78.0 lib/pact_broker/labels/service.rb
pact_broker-2.77.0 lib/pact_broker/labels/service.rb
pact_broker-2.76.2 lib/pact_broker/labels/service.rb
pact_broker-2.76.1 lib/pact_broker/labels/service.rb
pact_broker-2.76.0 lib/pact_broker/labels/service.rb
pact_broker-2.75.0 lib/pact_broker/labels/service.rb
pact_broker-2.74.1 lib/pact_broker/labels/service.rb
pact_broker-2.74.0 lib/pact_broker/labels/service.rb
pact_broker-2.73.0 lib/pact_broker/labels/service.rb
pact_broker-2.72.0 lib/pact_broker/labels/service.rb
pact_broker-2.71.0 lib/pact_broker/labels/service.rb
pact_broker-2.70.0 lib/pact_broker/labels/service.rb
pact_broker-2.69.0 lib/pact_broker/labels/service.rb
pact_broker-2.68.1 lib/pact_broker/labels/service.rb
pact_broker-2.68.0 lib/pact_broker/labels/service.rb
pact_broker-2.67.0 lib/pact_broker/labels/service.rb
pact_broker-2.66.0 lib/pact_broker/labels/service.rb