Sha256: d615f53b6f4ef9adea1f280c4ab50bdff32dddee06f306da7c6b53aad4f0f792

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

class PgExport
  module Listeners
    class Interactive
      class BuildDump < InteractiveListener
        def on_step(event)
          @spinner = build_spinner("Dumping database #{event[:args].first[:database_name]}")
        end

        def on_step_succeeded(event)
          @spinner.success([success, event[:value][:dump]].join(' '))
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb