module Cake::DSL
Defined in:
cake/dsl.crInstance Method Summary
-
#default(name : String | Symbol)
Sets the given target to be the default target.
-
#phony(name : String | Symbol)
Adds the given target to the phony targets.
-
#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.
-
#target(name : String | Symbol, deps : Array(String | Symbol) = [] of String | Symbol, desc : String = "", &build : Env -> )
Defines a new target.
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.
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.
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.