Class Bee::Targets
In: lib/bee.rb
Parent: Object

Class to manage targets in a build.

Methods

add   call_super   description   extend   is_last   new   run   run_target  

Included Modules

Bee::Util::BuildErrorMixin

Attributes

already_run  [R]  Targets already run.
build  [R]  Parent build.
default  [RW]  Default target.
hash  [R]  Targets hash by name.

Public Class methods

Constructor.

  • build: build object.

Public Instance methods

Add a new target.

  • object: object tree resulting from YAML build file parsing.

Call super target.

  • target: target that calls super.

Return targets description as a hash of descriptions indexed by target name. Dependencies are added after target description.

Extend parent targets.

  • parent: parent targets.

Tells if a given target is last in hierarchy.

  • target: given target.

Run targets.

  • targets: list of target names to run.

Run a given target.

  • target: the target to run.

[Validate]