class Cake::Target

Overview

Represents a target to be built.

Defined in:

cake/target.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, deps : Array(String), desc : String, &build : Env -> ) #

[View source]

Instance Method Detail

def build(env : Env) : Bool #

Builds the target.

The target will not be build if it is deemed up to date. This means that none of its target dependencies were rebuilt, and none of its file dependencies were modified after the target file was last modified.


[View source]
def deps : Array(String) #

Returns the dependencies of the target.


[View source]
def desc : String #

Returns the description of the target.


[View source]
def name : String #

Returns the name of the target.


[View source]