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