Class: PgExport::Listeners::PlainListener
- Inherits:
-
Object
- Object
- PgExport::Listeners::PlainListener
show all
- Defined in:
- lib/pg_export/listeners/plain_listener.rb
Direct Known Subclasses
PgExport::Listeners::Plain::BuildDump, PgExport::Listeners::Plain::CloseConnection, PgExport::Listeners::Plain::DecryptDump, PgExport::Listeners::Plain::DownloadDump, PgExport::Listeners::Plain::EncryptDump, PgExport::Listeners::Plain::FetchDumps, PgExport::Listeners::Plain::OpenConnection, PgExport::Listeners::Plain::PrepareParams, PgExport::Listeners::Plain::RemoveOldDumps, PgExport::Listeners::Plain::Restore, PgExport::Listeners::Plain::UploadDump
Instance Method Summary
collapse
Constructor Details
Returns a new instance of PlainListener.
6
7
8
|
# File 'lib/pg_export/listeners/plain_listener.rb', line 6
def initialize(logger:)
@logger = logger
end
|
Instance Method Details
#on_step ⇒ Object
10
|
# File 'lib/pg_export/listeners/plain_listener.rb', line 10
def on_step(*); end
|
#on_step_failed(event) ⇒ Object
14
15
16
|
# File 'lib/pg_export/listeners/plain_listener.rb', line 14
def on_step_failed(event)
logger.info("Error: #{event[:value][:message]}")
end
|
#on_step_succeeded ⇒ Object
12
|
# File 'lib/pg_export/listeners/plain_listener.rb', line 12
def on_step_succeeded(*); end
|