public abstract class Deployer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Deployer.CopyFileVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected String |
client |
protected String |
encodedApiKey |
protected Logger |
logger |
protected String |
name |
protected File |
rootDir |
protected File |
targetDir |
| Constructor and Description |
|---|
Deployer(String client,
String name,
File rootDir,
File targetDir,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtras(Map<String,String> processTypes) |
protected void |
addMetadata() |
protected abstract File |
buildSlugFile(String slugFilename) |
protected void |
copy(File file,
File copyTarget) |
protected void |
copyResourceFile(String srcFilename,
File targetFile) |
protected void |
createAndReleaseSlug(String stack,
Map<String,String> processTypes,
String slugFilename) |
protected void |
deploy(Map<String,String> configVars,
String jdkVersion,
URL jdkUrl,
String stack,
Map<String,String> processTypes,
String slugFilename) |
protected abstract void |
deploySlug(String stack,
Map<String,String> processTypes,
File slugFile) |
protected File |
getAppDir() |
String |
getClient() |
protected String |
getEncodedApiKey() |
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 void |
releaseSlug(Slug slug) |
void |
setEncodedApiKey(String apiKey) |
protected String |
toPropertiesString() |
protected void |
uploadSlug(Slug slug,
File slugFile,
Set processTypes) |
protected abstract void |
vendorJdk(String jdkVersion,
URL jdkUrl,
String stackName) |
protected String client
protected String name
protected File rootDir
protected File targetDir
protected String encodedApiKey
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()
public String getClient()
protected void deploy(Map<String,String> configVars, String jdkVersion, URL jdkUrl, String stack, Map<String,String> processTypes, String slugFilename) 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 createAndReleaseSlug(String stack, Map<String,String> processTypes, String slugFilename) throws IOException, org.apache.commons.compress.archivers.ArchiveException, InterruptedException
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionInterruptedExceptionprotected abstract File buildSlugFile(String slugFilename) throws InterruptedException, org.apache.commons.compress.archivers.ArchiveException, IOException
InterruptedExceptionorg.apache.commons.compress.archivers.ArchiveExceptionIOExceptionprotected abstract void deploySlug(String stack, Map<String,String> processTypes, File slugFile) throws IOException, org.apache.commons.compress.archivers.ArchiveException, InterruptedException
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionInterruptedExceptionprotected void uploadSlug(Slug slug, File slugFile, Set processTypes) throws IOException, org.apache.commons.compress.archivers.ArchiveException, InterruptedException
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionInterruptedExceptionprotected void releaseSlug(Slug slug) throws IOException
IOExceptionprotected String getJdkVersion()
protected Properties getHerokuProperties()
protected abstract void vendorJdk(String jdkVersion, URL jdkUrl, String stackName) throws IOException, InterruptedException, org.apache.commons.compress.archivers.ArchiveException
IOExceptionInterruptedExceptionorg.apache.commons.compress.archivers.ArchiveExceptionprotected String getEncodedApiKey() throws IOException
IOExceptionprotected File getAppDir()
protected File getHerokuDir()
protected File getRootDir()
protected File getTargetDir()
protected void copyResourceFile(String srcFilename, File targetFile) throws IOException
IOExceptionprotected String parseCommit() throws IOException
IOExceptionprotected void addMetadata()
throws IOException
IOExceptionprotected String toPropertiesString()
public void setEncodedApiKey(String apiKey)
Copyright © 2017. All rights reserved.