class Sam::Task

Defined in:

sam/task.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(block, deps, parent, name, description = 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::ALLOWED_HASH, arr : Array(Args::ALLOWED_TYPES)) #

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

Invoke the task even if it has been invoked.


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

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

[View source]
def find!(name) #

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

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

Invoke the task if it is needed.


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

[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]