aem-plugin / com.cognifide.gradle.aem.common.instance / InstanceManager

InstanceManager

open class InstanceManager

Constructors

<init>

InstanceManager(aem: AemExtension)

Properties

aem

val aem: AemExtension

all

Map of AEM instances with names as a keys.

val all: Provider<Map<String, Instance!>!>!

buildDir

Directory storing outputs of instance tasks.

val buildDir: DirectoryProperty!

configDir

Directory storing instance wide configuration files.

val configDir: DirectoryProperty!

defined

List of AEM instances e.g on which packages could be deployed. Instance stored in map ensures name uniqueness and allows to be referenced in expanded properties.

val defined: ListProperty<Instance!>!

projectDir

Using remote AEM instances is acceptable in any project, so that lookup for project applying local instance plugin is required Needed to determine common directory storing instance related resources (tailer incident filter, Groovy scripts etc).

val projectDir: DirectoryProperty!

provisioner

val provisioner: Provisioner

satisfier

val satisfier: Satisfier

tailer

val tailer: Tailer

Functions

awaitDown

fun awaitDown(instance: Instance, options: AwaitDownAction.() -> Unit = {}): Unit
fun awaitDown(instances: Collection<Instance>, options: AwaitDownAction.() -> Unit = {}): Unit

awaitReloaded

fun awaitReloaded(instance: Instance, reloadOptions: ReloadAction.() -> Unit = {}, awaitUpOptions: AwaitUpAction.() -> Unit = {}): Unit
fun awaitReloaded(instances: Collection<Instance>, reloadOptions: ReloadAction.() -> Unit = {}, awaitUpOptions: AwaitUpAction.() -> Unit = {}): Unit

awaitUp

fun awaitUp(instance: Instance, options: AwaitUpAction.() -> Unit = {}): Unit
fun awaitUp(instances: Collection<Instance>, options: AwaitUpAction.() -> Unit = {}): Unit

check

fun check(instance: Instance, options: CheckAction.() -> Unit): Unit
fun check(instances: Collection<Instance>, options: CheckAction.() -> Unit): Unit

local

Define local instance (created on local file system).

fun local(httpUrl: String): Unit
fun local(httpUrl: String, name: String): Unit
fun local(httpUrl: String, options: LocalInstance.() -> Unit): Unit

named

fun named(name: String): Instance

parse

Get defined instance by name or create temporary definition if URL provided.

fun parse(url: String): Instance

provisioner

fun provisioner(options: Provisioner.() -> Unit): Unit

reload

fun reload(instance: Instance, options: ReloadAction.() -> Unit = {}): Unit
fun reload(instances: Collection<Instance>, options: ReloadAction.() -> Unit = {}): Unit

remote

Define remote instance (available on any host).

fun remote(httpUrl: String): Unit
fun remote(httpUrl: String, name: String): Unit
fun remote(httpUrl: String, options: Instance.() -> Unit): Unit

resolveFiles

fun resolveFiles(): Unit

satisfier

fun satisfier(options: Satisfier.() -> Unit): Unit

sync

Customize default options for instance services.

fun sync(options: InstanceSync.() -> Unit): Unit

tailer

fun tailer(options: Tailer.() -> Unit): Unit