class Griffith::Task
- Griffith::Task
- Reference
- Object
Included Modules
Defined in:
griffith/task.crConstructors
-
.new(description : String)
Creates a new task with the given description.
Instance Method Summary
- #description : String
-
#details(details : String)
Sets the details text.
- #details : String?
-
#done(status_message : Nil | String = Config.done_message)
Sets the status message.
-
#fail(status_message : Nil | String = Config.fail_message)
Sets the status message.
-
#running(status_message : Nil | String = Config.running_message)
Sets the status message.
-
#status_message(status_message : String)
Sets the status message.
- #status_message : String?
Instance methods inherited from module Griffith::Publisher(Griffith::Task)
subscribe(listener : Subscriber(T))
subscribe
Constructor Detail
Instance Method Detail
def done(status_message : Nil | String = Config.done_message)
#
Sets the status message. Defaults to: Griffith::Config::DEFAULT_DONE_MESSAGE
.
def fail(status_message : Nil | String = Config.fail_message)
#
Sets the status message. Defaults to: Griffith::Config::DEFAULT_FAIL_MESSAGE
.
def running(status_message : Nil | String = Config.running_message)
#
Sets the status message. Defaults to: Griffith::Config::DEFAULT_RUNNING_MESSAGE
.