Search in sources :

Example 1 with StemcellModel

use of org.springframework.ide.vscode.bosh.models.StemcellModel in project sts4 by spring-projects.

the class BoshDeploymentManifestSchema method getCurrentStemcell.

private StemcellModel getCurrentStemcell(DynamicSchemaContext dc) throws Exception {
    YamlPath path = dc.getPath();
    YamlFileAST ast = asts.getAst(dc.getDocument(), true);
    return new StemcellModel(path.dropLast().traverseToNode(ast));
}
Also used : YamlPath(org.springframework.ide.vscode.commons.yaml.path.YamlPath) YamlFileAST(org.springframework.ide.vscode.commons.yaml.ast.YamlFileAST) StemcellModel(org.springframework.ide.vscode.bosh.models.StemcellModel)

Aggregations

StemcellModel (org.springframework.ide.vscode.bosh.models.StemcellModel)1 YamlFileAST (org.springframework.ide.vscode.commons.yaml.ast.YamlFileAST)1 YamlPath (org.springframework.ide.vscode.commons.yaml.path.YamlPath)1