class Sam::Task

Defined in:

sam/task.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(block : -> _ | Sam::Task -> _ | Sam::Task, Sam::Args -> _, deps : Array(String), parent : Sam::Namespace, name : String, description : Nil | String = nil) #

[View source]

Instance Method Detail

def call(args : Args) #

Launch current task. Prerequisites are invoked first.


[View source]
def description #

[View source]
def execute(name, hash : Args::AllowedHash, arr : Array(Args::AllowedTypes)) #

[View source]
def execute(name, args : Args) #

Invoke the task even if it has been invoked.


[View source]
def execute(name, hash : Args::AllowedHash) #

[View source]
def execute(name, *args) #

[View source]
def find!(name) #

[View source]
def invoke(name, hash : Args::AllowedHash, arr : Array(Args::AllowedTypes)) #

[View source]
def invoke(name, args : Args) #

Invoke the task if it is needed.


[View source]
def invoke(name, hash : Args::AllowedHash) #

[View source]
def invoke(name, *args) #

[View source]
def invoked? : Bool #

[View source]
def name : String #

[View source]
def path #

[View source]
def reenable #

[View source]