Sha256: 8f98f7961e0168b83d20a08cc57aa81d336e638ef8195ba6956ee4ea92bdcec1

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

module Artifactory
  module GemImport
    module Worker
      class Base

        private

        def summary
          summary = bookkeeper.ask!(:summary)
          for_review = reviewer.ask!(:summary)

          for_review.any? ? summary.merge(review: for_review) : summary
        end

        def bookkeeper
          @bookkeeper ||= Bookkeeper.counter
        end

        def publisher
          @publisher ||= Bookkeeper.publisher
        end

        def reviewer
          @reviewer ||= Bookkeeper.reviewer
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
artifactory-gem_import-0.2.2 lib/artifactory/gem_import/worker/base.rb
artifactory-gem_import-0.2.0 lib/artifactory/gem_import/worker/base.rb
artifactory-gem_import-0.1.4 lib/artifactory/gem_import/worker/base.rb
artifactory-gem_import-0.1.3 lib/artifactory/gem_import/worker/base.rb