Sha256: 30ad7cbc3e8f4cbc5d68bf961f57fe2e5e8944529873b2d4d6b2c5d97d727dbf
Contents?: true
Size: 709 Bytes
Versions: 8
Compression:
Stored size: 709 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 use :main transaction = PgExport::Transactions::ExportDump.new unless target[:config].logger_muted? use :logger type = 'plain' # type = 'interactive' %i[ build_dump encrypt_dump open_ftp_connection upload_dump_to_ftp remove_old_dumps_from_ftp close_ftp_connection ].each do |step| transaction.subscribe(step => target["listeners.#{type}.#{step}"]) end end register('transactions.export_dump', memoize: true) { transaction } end end
Version data entries
8 entries across 8 versions & 1 rubygems