class Matrix::Architect::Commands::Base::Runner

Overview

Configures the execution of a command. Used with Base#run.

Defined in:

commands/base.cr

Instance Method Summary

Instance Method Detail

def command(&block) #

Saves the command to run. If not set an error RunError wil be raised.


[View source]
def command_callback : -> Nil? #

[View source]
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.


[View source]
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.


[View source]
def progress_callback : Time::Span -> Nil? #

[View source]
def success_callback : Time::Span -> Nil? #

[View source]