All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.devsecops.engine.domain.genconfig.commands.ApplicationYamlConfigCommand Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package io.github.devsecops.engine.domain.genconfig.commands;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import static io.github.devsecops.engine.core.model.Environment.LOCAL;

@Component
@Qualifier("YAML")
public class ApplicationYamlConfigCommand extends AbstractConfigCommand {

    @Override
    public String getTemplatePath() {
        return "src/main/resources/application-template.yaml";
    }

    @Override
    public String getOutputPath() {
        return getEnv() ==null || LOCAL.equals(getEnv()) ? "src/main/resources/application.yaml" : "ci/dist/application.yaml";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy