Sha256: 5e7db20a9d133071b1eb02cad66fa2a24ca103881de49bd327bef501feb84566

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

class PgExport
  module Listeners
    class PlainListener
      def initialize(logger:)
        @logger = logger
      end

      def on_step(*); end

      def on_step_succeeded(*); end

      def on_step_failed(event)
        logger.info("Error: #{event[:value][:message]}")
      end

      private

      attr_reader :logger
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_export-1.0.0 lib/pg_export/listeners/plain_listener.rb
pg_export-1.0.0.rc8 lib/pg_export/listeners/plain_listener.rb
pg_export-1.0.0.rc6 lib/pg_export/lib/pg_export/listeners/plain_listener.rb