-
- All Implemented Interfaces:
-
java.io.Serializable
public class EnvironmentExtension implements Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private final CommonExtensioncommonprivate final Loggerloggerprivate final ObjectFactoryobjprivate final PropertyParserpropprivate final DirectoryPropertyrootDirprivate final DirectoryPropertybuildDirprivate final DirectoryPropertysourceDirprivate final Dockerdockerprivate final HealthCheckerhealthCheckerprivate final HostOptionshostsprivate final Booleancreatedprivate final Booleanrunningprivate final Booleanupprivate final BooleanupToDateprivate final Projectproject
-
Constructor Summary
Constructors Constructor Description EnvironmentExtension(Project project)
-
Method Summary
Modifier and Type Method Description final Unitdocker(Function1<Docker, Unit> options)Configures Docker related options. final Unitchecks(Function1<HealthChecker, Unit> options)Configures environment service health checks. final UnithealthChecks(Function1<HealthChecker, Unit> options)final Unithosts(Function1<HostOptions, Unit> options)Defines hosts to be appended to system specific hosts file. final Unitresolve()final Unitup()final Unitdown()final Unitrestart()final Unitdestroy()final List<HealthStatus>check(Boolean verbose, Retry retry)final Unitreload()StringtoString()final CommonExtensiongetCommon()final LoggergetLogger()final ObjectFactorygetObj()final PropertyParsergetProp()final DirectoryPropertygetRootDir()Path in which local environment will be stored. final DirectoryPropertygetBuildDir()Path for temporary files needed to set up environment like: generated SSL certificates, unpacked archive contents, etc. final DirectoryPropertygetSourceDir()Convention directory for storing environment specific configuration files. final DockergetDocker()final HealthCheckergetHealthChecker()final HostOptionsgetHosts()final BooleangetCreated()final BooleangetRunning()final BooleangetUp()final BooleangetUpToDate()final ProjectgetProject()-
-
Constructor Detail
-
EnvironmentExtension
EnvironmentExtension(Project project)
-
-
Method Detail
-
checks
final Unit checks(Function1<HealthChecker, Unit> options)
Configures environment service health checks.
-
healthChecks
final Unit healthChecks(Function1<HealthChecker, Unit> options)
-
hosts
final Unit hosts(Function1<HostOptions, Unit> options)
Defines hosts to be appended to system specific hosts file.
-
check
final List<HealthStatus> check(Boolean verbose, Retry retry)
-
getCommon
final CommonExtension getCommon()
-
getObj
final ObjectFactory getObj()
-
getProp
final PropertyParser getProp()
-
getRootDir
final DirectoryProperty getRootDir()
Path in which local environment will be stored.
-
getBuildDir
final DirectoryProperty getBuildDir()
Path for temporary files needed to set up environment like: generated SSL certificates, unpacked archive contents, etc.
-
getSourceDir
final DirectoryProperty getSourceDir()
Convention directory for storing environment specific configuration files.
-
getHealthChecker
final HealthChecker getHealthChecker()
-
getHosts
final HostOptions getHosts()
-
getCreated
final Boolean getCreated()
-
getRunning
final Boolean getRunning()
-
getUpToDate
final Boolean getUpToDate()
-
getProject
final Project getProject()
-
-
-
-