Module: Jujube::Components::Axes

Extended by:
Macros
Included in:
Jujube::Components
Defined in:
lib/jujube/components/axes.rb

Overview

Helper methods for creating matrix axes components.

Instance Method Summary collapse

Methods included from Macros

attribute, section

Instance Method Details

#label_expression(name, values) ⇒ Hash

Specify a label-expression axis for a matrix job.

See http://docs.openstack.org/infra/jenkins-job-builder/project_matrix.html.

Parameters:

  • name (Symbol, String)

    The name of the axis.

  • values (Array<String>)

    The values of the axis.

Returns:

  • (Hash)

    The specification for the axis.



15
16
17
# File 'lib/jujube/components/axes.rb', line 15

def label_expression(name, values)
  axis(name, values, :label_expression)
end

#slave(name, values) ⇒ Hash

Parameters:

  • name (Symbol, String)

    The name of the axis.

  • values (Array<String>)

    The values of the axis.

Returns:

  • (Hash)

    The specification for the axis.



26
27
28
# File 'lib/jujube/components/axes.rb', line 26

def slave(name, values)
  axis(name, values, :slave)
end