public class AppNameResolver extends Object
| Constructor and Description |
|---|
AppNameResolver() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
resolve(Path projectDirectory,
Supplier<Optional<String>> customResolver)
Resolves the Heroku app name based on the given project directory.
|
public static Optional<String> resolve(Path projectDirectory, Supplier<Optional<String>> customResolver) throws IOException
projectDirectory - The projects root directory.customResolver - A custom resolver for the app name. Most likely a setting from a build tool like Maven or sbt.IOException - Resolving requires IO operations which might fail.Copyright © 2020. All rights reserved.