com.heroku.sdk.deploy.lib.resolver.ProcfileResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heroku-deploy Show documentation
Show all versions of heroku-deploy Show documentation
Library for deploying Java applications to Heroku
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());
}
}