@groovy.transform.CompileStatic class YamlCommandFactory extends ResourceResolvingCommandFactory<java.util.Map>
A CommandFactory that can discover commands defined in YAML or JSON
Modifiers | Name | Description |
---|---|---|
private java.lang.String |
fileNamePattern |
|
protected groovy.json.JsonSlurper |
jsonSlurper |
|
private java.util.Collection<java.lang.String> |
matchingFileExtensions |
|
protected org.yaml.snakeyaml.Yaml |
yamlParser |
Type | Name and description |
---|---|
java.lang.String |
fileNamePattern |
java.util.Collection<java.lang.String> |
matchingFileExtensions |
Constructor and description |
---|
YamlCommandFactory
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected Command |
createCommand(Profile profile, java.lang.String commandName, Resource resource, java.util.Map data) |
|
protected java.util.Map |
readCommandFile(Resource resource) |
Groovy Documentation