environment-plugin / com.cognifide.gradle.environment / EnvironmentExtension

EnvironmentExtension

open class EnvironmentExtension : Serializable

Constructors

<init>

EnvironmentExtension(project: Project)

Properties

common

val common: CommonExtension

created

val created: Boolean

docker

val docker: Docker

healthChecker

val healthChecker: HealthChecker

hosts

val hosts: HostOptions

logger

val logger: Logger!

obj

val obj: ObjectFactory

project

val project: Project

prop

val prop: PropertyParser

rootDir

Path in which local AEM environment will be stored.

val rootDir: DirectoryProperty!

running

val running: Boolean

sourceDir

Convention directory for storing environment specific configuration files.

val sourceDir: DirectoryProperty!

up

val up: Boolean

Functions

check

fun check(verbose: Boolean = true): List<HealthStatus>

destroy

fun destroy(): Unit

docker

Configures Docker related options.

fun docker(options: Docker.() -> Unit): Unit

down

fun down(): Unit

healthChecks

Configures environment service health checks.

fun healthChecks(options: HealthChecker.() -> Unit): Unit

hosts

Defines hosts to be appended to system specific hosts file.

fun hosts(options: HostOptions.() -> Unit): Unit

reload

fun reload(): Unit

resolve

fun resolve(): Unit

restart

fun restart(): Unit

toString

open fun toString(): String

up

fun up(): Unit

Companion Object Properties

NAME

const val NAME: String

Companion Object Functions

of

fun of(project: Project): EnvironmentExtension