@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 public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings().setArtifactId(getArtifactId(deploymentConfiguration.getName())) .setHost(getDefaultHost()) .setEnabled(true); }
@Override public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings().setArtifactId(getArtifactId(deploymentConfiguration.getName())) .setHost(getDefaultHost()) .setEnabled(true); }
@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)); } }