class Matrix::Architect::Commands::Base::Runner
- Matrix::Architect::Commands::Base::Runner
- Reference
- Object
Overview
Configures the execution of a command. Used with Base#run
.
Defined in:
commands/base.crInstance Method Summary
-
#command(&block)
Saves the command to run.
- #command_callback : -> Nil?
-
#on_progress(&block : Time::Span -> Nil)
Saves a proc to execute on command progression.
-
#on_success(&block : Time::Span -> Nil)
Saves a proc to execute on command success.
- #progress_callback : Time::Span -> Nil?
- #success_callback : Time::Span -> Nil?
Instance Method Detail
def on_progress(&block : Time::Span -> Nil)
#
Saves a proc to execute on command progression.
When executing the proc, gives it the current execution time.
def on_success(&block : Time::Span -> Nil)
#
Saves a proc to execute on command success.
When executing the proc, gives it the total execution time.