!Register

The !Register tag is used within the order section of a !Config tag to specify the position that a normal register !Group should be instantiated.

Each normal register !Group can only be used once, and is instantiated with the same name as the group. This is unlike macro type !Groups which can be instantiated multiple times with different names.

Usage

As the !Register tag only takes a single attribute (the !Group name) it is far easier to use sequence syntax rather than the mapping style, although both are legal syntax.

- !Config
  order:
  - !Register [group_a]
  - !Register
    group: group_b

- !Group
  name: group_a
  ...

- !Group
  name: group_b
  ...
class blade.schema.ph_register.Register(group)

A !Register is a tag used within a !Config to specify the order of processing of defined groups. Without a !Config attribute, groups are expanded in the order that they’re declared.

__init__(group)

Initialisation for the !Register tag

Parameters

group – The name of the !Group that is being instantiated

validate()

Check that this tag agrees with our YAML schema