Class: Hanami::CLI::Commands::App::DB::Utils::Database::DumpResult Private
- Inherits:
-
SystemCall::Result
- Object
- SystemCall::Result
- Hanami::CLI::Commands::App::DB::Utils::Database::DumpResult
- Defined in:
- lib/hanami/cli/commands/app/db/utils/database.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from SystemCall::Result
Instance Method Summary collapse
-
#initialize(result, post_process: -> sql { sql }) ⇒ DumpResult
constructor
private
A new instance of DumpResult.
- #sql ⇒ Object private
Methods inherited from SystemCall::Result
Constructor Details
#initialize(result, post_process: -> sql { sql }) ⇒ DumpResult
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DumpResult.
16 17 18 19 |
# File 'lib/hanami/cli/commands/app/db/utils/database.rb', line 16 def initialize(result, post_process: -> sql { sql }) @post_process = post_process super(result) end |
Instance Method Details
#sql ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/hanami/cli/commands/app/db/utils/database.rb', line 21 def sql @post_process.call(out) end |