Icon

This is the documentation of the latest development version of automaIT. The documentation of the latest stable release can be found at AUTOMAIT.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added NP-1253: Variables of the Resource

...

The following substitution types are available. All possibilities are listed in the section Grammar.

Simple Substitution

This substitution resolves a variable that is declared in the current scope. Only the variable name is given in the square brackets:

...

These substitutions can only be used in combination with the prefix target. By default the current host is used. See  Host Substitutions for details to the keyword "target" and how to address differing hosts.

...

Code Block
titleExample with component prefix
:[component:/examples/Echo:sys.name]

Variables of the Resource

The following system substitutions can be used with resource prefix:

SubstitutionDescriptionSample Output
sys.deployNameReturns the name of the resource.ExampleResource
sys.deployPathReturns the path of the resource with a trailing slash./opt/resourcePath
Code Block
titleExample
:[resource:resourceName:sys.deployName]

The usage with an component prefix is also possible:

Code Block
titleExample
:[component(exampleHost):/examples/component:resource:resourceName:sys.deployPath]

Host Substitutions

Target Substitutions (target)

...