Sha256: 70c9a12b8e677893b3b68a87a65254129faa8c34d3683723057f082d8297b200

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

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

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