Sha256: cbfba08e2ec7d5e863e893bf9109375e6ff268ee8bfdbb52ec01e5b99ca49b2a

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

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

        def on_step_succeeded(*)
          @spinner.success(success)
        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/restore.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.5 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/listeners/interactive/restore.rb