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

Class for a target. It is built from the YAML build file and manages a target, in particular, tasks execution.

Methods

new   run  

Included Modules

Bee::Util::BuildErrorMixin Bee::Util::HashCheckerMixin

Constants

KEY = 'target'   Target key.
DESCRIPTION = { 'target' => :mandatory, 'depends' => :optional, 'description' => :optional, 'script' => :optional}   Target entry description.

Attributes

depends  [RW]  Target dependencies.
description  [R]  Target description.
name  [R]  Name of the target.
script  [R]  Script that run in the target.
targets  [RW]  Targets for build.

Public Class methods

Constructor.

  • object: object for target, resulting from YAML parsing.
  • targets: build targets.

Public Instance methods

Run target.

  • dry: tells if we run in dry mode. Defaults to false.

[Validate]