Sha256: 3638f2af8075565a1bef0a5674b8074eafc27423ed68c5023b8736a963927f0f

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

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

        def on_step_succeeded(*)
          @spinner.success(success)
        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/restore.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb