Sha256: 7c49709b10bcb2e8d350840bdbde53e8d6b3e585e65877b868dac0a8801ca26a

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true

PgExport::Container.boot(:plain) do
  init do
    require 'pg_export/lib/pg_export/transactions/export_dump'
  end

  start do
    transaction = PgExport::Transactions::ExportDump.new

    unless target[:config].logger_muted?
      type = 'plain'
      %i[
        build_dump
        encrypt_dump
        open_connection
        upload_dump
        remove_old_dumps
        close_connection
      ].each do |step|
        transaction.subscribe(step => target["listeners.#{type}.#{step}"])
      end
    end

    register('transaction', memoize: true) { transaction }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc4 lib/pg_export/system/boot/plain.rb