BuildSourceBuildTask

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 walker Build::Graph::Walker

The graph walker.

parameter node Build::Graph::Node

The node being processed.

parameter group Process::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