class Griffith::Task

Included Modules

Defined in:

griffith/task.cr

Constructors

Instance Method Summary

Instance methods inherited from module Griffith::Publisher(Griffith::Task)

subscribe(listener : Subscriber(T)) subscribe

Constructor Detail

def self.new(description : String) #

Creates a new task with the given description.


[View source]

Instance Method Detail

def description : String #

[View source]
def details(details : String) #

Sets the details text.


[View source]
def details : String? #

[View source]
def done(status_message : Nil | String = Config.done_message) #

Sets the status message. Defaults to: Griffith::Config::DEFAULT_DONE_MESSAGE.


[View source]
def fail(status_message : Nil | String = Config.fail_message) #

Sets the status message. Defaults to: Griffith::Config::DEFAULT_FAIL_MESSAGE.


[View source]
def running(status_message : Nil | String = Config.running_message) #

Sets the status message. Defaults to: Griffith::Config::DEFAULT_RUNNING_MESSAGE.


[View source]
def status_message(status_message : String) #

Sets the status message.


[View source]
def status_message : String? #

[View source]