@Override protected void appendCustomConfigDir(Profile profile) { Map parsedContents = (Map) yamlParser.load(profile.getContents()); if (!(parsedContents.get("rosco") instanceof Map)) { parsedContents.put("rosco", new LinkedHashMap<String,Object>()); } String packerDirectory = Paths.get(getRoscoConfigPath(), "packer").toString(); ((Map) parsedContents.get("rosco")).put("configDir", packerDirectory); profile.setContents(yamlParser.dump(parsedContents)); } }
@Override protected void appendCustomConfigDir(Profile profile) { Map parsedContents = (Map) yamlParser.load(profile.getContents()); if (!(parsedContents.get("rosco") instanceof Map)) { parsedContents.put("rosco", new LinkedHashMap<String,Object>()); } String packerDirectory = Paths.get(getRoscoConfigPath(), "packer").toString(); ((Map) parsedContents.get("rosco")).put("configDir", packerDirectory); profile.setContents(yamlParser.dump(parsedContents)); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.setContents(profile.getBaseContents()); profile.setExecutable(executable); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.setContents(profile.getBaseContents()); profile.setExecutable(executable); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { StringResource template = new StringResource(profile.getBaseContents()); profile.setRequiredFiles(requiredFiles(deploymentConfiguration)); Map<String, Object> bindings = getBindings(deploymentConfiguration, endpoints); profile.setContents(template.setBindings(bindings).toString()); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { StringResource template = new StringResource(profile.getBaseContents()); profile.setRequiredFiles(requiredFiles(deploymentConfiguration)); Map<String, Object> bindings = getBindings(deploymentConfiguration, endpoints); profile.setContents(template.setBindings(bindings).toString()); } }