Sha256: 2b6cff1b81e584fe922b0a30a79067c5a151838a44125d098218221d18521a83

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

require_relative '../interactive_listener'

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

        def on_step_succeeded(*)
          @spinner.success(success)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/listeners/interactive/upload_dump.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/listeners/interactive/upload_dump.rb