module Cake::DSL

Defined in:

cake/dsl.cr

Instance Method Summary

Instance Method Detail

def default(name : String | Symbol) #

Sets the given target to be the default target.

If a default target is not set, it is automatically set to the first target that was defined.


[View source]
def phony(name : String | Symbol) #

Adds the given target to the phony targets.

Phony targets are targets that will always be rebuilt, no matter when their files exist or when their dependencies are not rebuilt.


[View source]
def run(command : String, args = nil, env : Process::Env = nil, clear_env : Bool = false, shell : Bool = false, input : Bool = true, output : Bool = true, error : Bool = true, chdir : String | Nil = nil, quiet : Bool = false) #

Runs an external command.

Raises a BuildError if an error occured while running. If the quiet flag is set, the command that was run will not be displayed.


[View source]
def target(name : String | Symbol, deps : Array(String | Symbol) = [] of String | Symbol, desc : String = "", &build : Env -> ) #

Defines a new target.


[View source]