Sha256: 058f25958fe2113086f1e732c7c18a1483c6520e5b8f925b4a11cbe496e910bc

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 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[:value][:database_name]}")
        end

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

Version data entries

3 entries across 3 versions & 1 rubygems

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