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());
}
}