public class Environment
| Modifier and Type | Class and Description |
|---|---|
static class |
Environment.Companion |
| Modifier and Type | Field and Description |
|---|---|
static Environment.Companion |
Companion |
static java.lang.String |
DISTRIBUTIONS_DIR |
static java.lang.String |
ENVIRONMENT_DIR |
| Constructor and Description |
|---|
Environment(AemExtension aem) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.cognifide.gradle.aem.environment.health.HealthStatus> |
check(boolean verbose) |
void |
clean() |
void |
destroy() |
void |
directories(java.lang.String... paths)
Ensures that specified directories will exist.
|
void |
directories(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.DirectoryOptions,kotlin.Unit> options)
Allows to distinguish regular directories and caches (cleanable).
|
java.io.File |
distributionFile(java.lang.String path) |
void |
distributions(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.resolver.FileResolver,kotlin.Unit> options)
Allows to provide remote files to Docker containers by mounted volumes.
|
void |
down() |
AemExtension |
getAem() |
java.io.File |
getConfigDir()
Convention directory for storing environment specific configuration files.
|
boolean |
getCreated() |
DirectoryOptions |
getDirectories()
Directory options (defines caches and regular directories to be created)
|
java.util.List<java.io.File> |
getDistributionFiles() |
java.io.File |
getDockerComposeFile() |
java.io.File |
getDockerComposeSourceFile() |
java.lang.String |
getDockerConfigPath() |
java.lang.String |
getDockerRootPath() |
DockerRuntime |
getDockerRuntime() |
HealthChecker |
getHealthChecker() |
HostOptions |
getHosts() |
HttpdContainer |
getHttpd()
Represents Docker container named 'aem_httpd' and provides API for manipulating it.
|
java.io.File |
getHttpdConfDir() |
java.io.File |
getRootDir()
Path in which local AEM environment will be stored.
|
boolean |
getRunning() |
Stack |
getStack()
Represents Docker stack named 'aem' and provides API for manipulating it.
|
void |
healthChecks(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.health.HealthChecker,kotlin.Unit> options)
Configures environment service health checks.
|
void |
hosts(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.hosts.HostOptions,kotlin.Unit> options) |
void |
hosts(java.lang.String... values)
Defines hosts to be appended to system specific hosts file.
|
void |
hosts(java.lang.Iterable<java.lang.String> names)
Defines hosts to be appended to system specific hosts file.
|
void |
restart() |
void |
setHealthChecker(HealthChecker p) |
void |
setRootDir(java.io.File p)
Path in which local AEM environment will be stored.
|
java.lang.String |
toString() |
void |
up() |
@NotNull public static java.lang.String ENVIRONMENT_DIR
@NotNull public static java.lang.String DISTRIBUTIONS_DIR
public static Environment.Companion Companion
public Environment(@NotNull
AemExtension aem)
@NotNull public java.io.File getRootDir()
Path in which local AEM environment will be stored.
public void setRootDir(@NotNull
java.io.File p)
Path in which local AEM environment will be stored.
@NotNull public java.io.File getConfigDir()
Convention directory for storing environment specific configuration files.
@NotNull public Stack getStack()
Represents Docker stack named 'aem' and provides API for manipulating it.
@NotNull public HttpdContainer getHttpd()
Represents Docker container named 'aem_httpd' and provides API for manipulating it.
@NotNull public java.io.File getHttpdConfDir()
@NotNull public DirectoryOptions getDirectories()
Directory options (defines caches and regular directories to be created)
@NotNull public java.util.List<java.io.File> getDistributionFiles()
public void distributions(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.resolver.FileResolver,kotlin.Unit> options)
Allows to provide remote files to Docker containers by mounted volumes.
@NotNull
public java.io.File distributionFile(@NotNull
java.lang.String path)
@NotNull public DockerRuntime getDockerRuntime()
@NotNull public java.io.File getDockerComposeFile()
@NotNull public java.io.File getDockerComposeSourceFile()
@NotNull public java.lang.String getDockerConfigPath()
@NotNull public java.lang.String getDockerRootPath()
@NotNull public HealthChecker getHealthChecker()
public void setHealthChecker(@NotNull
HealthChecker p)
@NotNull public HostOptions getHosts()
public boolean getCreated()
public boolean getRunning()
public void up()
public void down()
public void restart()
public void destroy()
@NotNull public java.util.List<com.cognifide.gradle.aem.environment.health.HealthStatus> check(boolean verbose)
public void clean()
public void directories(@NotNull
java.lang.String... paths)
Ensures that specified directories will exist.
public void directories(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.DirectoryOptions,kotlin.Unit> options)
Allows to distinguish regular directories and caches (cleanable).
public void hosts(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.hosts.HostOptions,kotlin.Unit> options)
public void hosts(@NotNull
java.lang.String... values)
Defines hosts to be appended to system specific hosts file.
public void hosts(@NotNull
java.lang.Iterable<java.lang.String> names)
Defines hosts to be appended to system specific hosts file.
public void healthChecks(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.health.HealthChecker,kotlin.Unit> options)
Configures environment service health checks.
@NotNull public java.lang.String toString()
@NotNull public AemExtension getAem()