class Task
This task class serves as the base class for the environment specific task classes genearted when adding targets.
Definitions
def initialize(walker, node, group)
Initialize the task.
Signature
-
parameter
walkerBuild::Graph::Walker The graph walker.
-
parameter
nodeBuild::Graph::Node The node being processed.
-
parameter
groupProcess::Group The process group for spawning commands.
Implementation
def initialize(walker, node, group)
super(walker, node)
@group = group
end
def task_class
Signature
-
returns
Class The class of this task.
Implementation
def task_class
self.class
end
def update
Apply the node to this task, executing any build logic.
Implementation
def update
@node.apply!(self)
end
def name
Signature
-
returns
String A string representation of the task.
Implementation
def name
self.to_s
end
def node_string
Signature
-
returns
String The name of the underlying node.
Implementation
def node_string
@node.name
end