Sha256: 770f151dc9ca98e4d576b4a94d10311b2c8b02597d01a382900b9131b8e7b077

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pg_export-0.7.7 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.5 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/listeners/interactive/build_dump.rb