@Immutable @Loggable(value=1) public final class Badged extends Object implements Environments
This wrapper will sniff Xembly tags announced in log before the creating of a new environment and convert them to environment badges. The logic of this mechanism is to be specified in the mapping, for example:
com.rultor.env.Badged(
{
"github:issue": "urn:rultor:github-issue",
"jira:key": "urn:rultor:jira-key"
},
original-environments
)
In this example, if tag "github" is found, its attribute
"issue" will be transformed into "urn:rultor:github-issue"
badge of a new environment.
| Constructor and Description |
|---|
Badged(Map<String,String> map,
Environments envs)
Public ctor.
|
public Environment acquire() throws IOException
Environmentsacquire in interface EnvironmentsIOException - If failspublic Iterator<Environment> iterator()
iterator in interface Iterable<Environment>Copyright © 2009–2014 Rultor Inc.. All rights reserved.