aem-plugin / com.cognifide.gradle.aem / AemExtension / anyInstance

anyInstance

val anyInstance: Instance

Get instance from command line parameter named 'instance' which holds instance name or URL. If it is not specified, then first instance matching default filtering fill be returned.

Purpose of this method is to easily get any instance to work with (no matter how it will be defined).