public class Deployer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Deployer.CopyFileVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected List<String> |
buildpacks |
protected String |
client |
protected Logger |
logger |
protected String |
name |
protected File |
rootDir |
protected File |
targetDir |
| Constructor and Description |
|---|
Deployer(String client,
String name,
File rootDir,
File targetDir,
List<String> buildpacks,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtras(Map<String,String> processTypes) |
protected void |
addMetadata() |
protected void |
copy(File file,
File copyTarget) |
protected File |
createBuild(String tarFilename) |
protected void |
createRelease(File tarFile) |
protected void |
deploy(Map<String,String> configVars,
String jdkVersion,
String buildFilename) |
protected String |
getApiKey() |
protected File |
getAppDir() |
protected File |
getHerokuDir() |
protected Properties |
getHerokuProperties() |
protected String |
getJdkVersion() |
String |
getName() |
protected Map<String,String> |
getProcfile() |
protected File |
getRootDir() |
protected File |
getTargetDir() |
void |
logDebug(String message) |
void |
logError(String message) |
void |
logInfo(String message) |
void |
logWarn(String message) |
protected void |
mergeConfigVars(Map<String,String> configVars) |
protected String |
parseCommit() |
void |
prepare(List<File> includedFiles,
Map<String,String> processTypes) |
protected String |
relativize(File path) |
protected String |
toPropertiesString() |
protected void |
vendorJdk(String jdkVersion) |
protected String client
protected String name
protected File rootDir
protected File targetDir
protected String apiKey
protected Logger logger
public void logInfo(String message)
public void logDebug(String message)
public void logWarn(String message)
public void logError(String message)
public String getName()
protected void deploy(Map<String,String> configVars, String jdkVersion, String buildFilename) throws Exception
Exceptionpublic void prepare(List<File> includedFiles, Map<String,String> processTypes) throws IOException
IOExceptionprotected void addExtras(Map<String,String> processTypes) throws IOException
IOExceptionprotected void copy(File file, File copyTarget) throws IOException
IOExceptionprotected void mergeConfigVars(Map<String,String> configVars) throws Exception
Exceptionprotected void createRelease(File tarFile) throws IOException, org.apache.commons.compress.archivers.ArchiveException, InterruptedException
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionInterruptedExceptionprotected File createBuild(String tarFilename) throws InterruptedException, org.apache.commons.compress.archivers.ArchiveException, IOException
InterruptedExceptionorg.apache.commons.compress.archivers.ArchiveExceptionIOExceptionprotected String getJdkVersion()
protected Properties getHerokuProperties()
protected void vendorJdk(String jdkVersion) throws IOException, InterruptedException, org.apache.commons.compress.archivers.ArchiveException
IOExceptionInterruptedExceptionorg.apache.commons.compress.archivers.ArchiveExceptionprotected String getApiKey() throws IOException
IOExceptionprotected File getAppDir()
protected File getHerokuDir()
protected File getRootDir()
protected File getTargetDir()
protected String parseCommit() throws IOException
IOExceptionprotected void addMetadata()
throws IOException
IOExceptionprotected String toPropertiesString()
Copyright © 2019. All rights reserved.