Sha256: 7a7331ea3391629f6f9146c89df17b8165e24c485d66d68e0064370b010e2998

Contents?: true

Size: 477 Bytes

Versions: 37

Compression:

Stored size: 477 Bytes

Contents

require 'pact_broker/repositories'
require 'pact_broker/relationships/groupify'

module PactBroker

  module Groups
    module Service

      extend self

      extend PactBroker::Repositories
      extend PactBroker::Services

      def find_group_containing pacticipant
        groups.find { | group | group.include_pacticipant? pacticipant }
      end

      def groups
        Relationships::Groupify.call pacticipant_service.find_relationships
      end

    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
pact_broker-2.9.0 lib/pact_broker/groups/service.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/groups/service.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/groups/service.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/groups/service.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/groups/service.rb
pact_broker-2.7.0.beta.2 lib/pact_broker/groups/service.rb
pact_broker-2.7.0.beta.1 lib/pact_broker/groups/service.rb
pact_broker-2.6.0 lib/pact_broker/groups/service.rb
pact_broker-2.5.1 lib/pact_broker/groups/service.rb
pact_broker-2.5.0 lib/pact_broker/groups/service.rb
pact_broker-2.4.2 lib/pact_broker/groups/service.rb
pact_broker-2.4.1 lib/pact_broker/groups/service.rb
pact_broker-2.4.0 lib/pact_broker/groups/service.rb
pact_broker-2.3.0 lib/pact_broker/groups/service.rb
pact_broker-2.2.0 lib/pact_broker/groups/service.rb
pact_broker-2.1.1 lib/pact_broker/groups/service.rb
pact_broker-2.1.0 lib/pact_broker/groups/service.rb
pact_broker-2.0.5 lib/pact_broker/groups/service.rb
pact_broker-2.0.4 lib/pact_broker/groups/service.rb
pact_broker-2.0.3 lib/pact_broker/groups/service.rb