Sha256: 65491c80f64186f34f2b7aa1aa7a7e64c05dff0850bcc274cab92d7579d67efc

Contents?: true

Size: 732 Bytes

Versions: 6

Compression:

Stored size: 732 Bytes

Contents

module Artifactory
  module GemImport
    module Bookkeeper
      class Publisher < Base
        private

        # Maintain the contract
        def init_store
        end

        def on_message(message)
          subject, action, msg = message

          case action
          when :processing
            puts "Processing #{subject.name} (#{subject.version})"
          when :status
            if msg == :ok
              puts msg
            else
              puts [msg, subject.errors.full_messages].join("\t")
            end
          when :count
            puts "#{subject}: #{msg} gems"
          else
            print "   --> #{action.to_s.capitalize}".ljust(20)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
artifactory-gem_import-1.1.0 lib/artifactory/gem_import/bookkeeper/publisher.rb
artifactory-gem_import-1.0.0 lib/artifactory/gem_import/bookkeeper/publisher.rb
artifactory-gem_import-0.2.2 lib/artifactory/gem_import/bookkeeper/publisher.rb
artifactory-gem_import-0.2.0 lib/artifactory/gem_import/bookkeeper/publisher.rb
artifactory-gem_import-0.1.4 lib/artifactory/gem_import/bookkeeper/publisher.rb
artifactory-gem_import-0.1.3 lib/artifactory/gem_import/bookkeeper/publisher.rb