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

com.heroku.sdk.deploy.lib.resolver.ProcfileResolver Maven / Gradle / Ivy

package com.heroku.sdk.deploy.lib.resolver;

import com.heroku.sdk.deploy.util.Procfile;

import java.io.IOException;
import java.nio.file.Path;
import java.util.function.Supplier;

public class ProcfileResolver {

    public static Procfile resolve(Path projectDirectory, Supplier customResolver) throws IOException {
        Procfile procfile = Procfile.fromFile(projectDirectory.resolve("Procfile"));
        return procfile.merge(customResolver.get());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy