Sha256: 06a9e327a14dd00af9ac61590654fbea399d80c84bc859842af72e33e67fab82

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

class PgExport
  module Listeners
    class Interactive
      class DownloadDump < InteractiveListener
        def on_step(*)
          @spinner = build_spinner('Downloading')
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_export-1.0.0 lib/pg_export/listeners/interactive/download_dump.rb
pg_export-1.0.0.rc8 lib/pg_export/listeners/interactive/download_dump.rb
pg_export-1.0.0.rc6 lib/pg_export/lib/pg_export/listeners/interactive/download_dump.rb
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/listeners/interactive/download_dump.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/listeners/interactive/download_dump.rb