File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
src/main/kotlin/com/cognifide/gradle/environment Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ open class EnvironmentExtension(val project: Project) : Serializable {
4646 /* *
4747 * Configures environment service health checks.
4848 */
49+ fun checks (options : HealthChecker .() -> Unit ) = healthChecks(options)
50+
4951 fun healthChecks (options : HealthChecker .() -> Unit ) = healthChecker.using(options)
5052
5153 val healthChecker by lazy { HealthChecker (this ) }
Original file line number Diff line number Diff line change @@ -68,12 +68,7 @@ class HealthChecker(val environment: EnvironmentExtension) {
6868 }
6969 }
7070
71- val message = " Environment health check(s) succeed: $count "
72- if (! verbose) {
73- logger.lifecycle(message)
74- } else {
75- logger.info(message)
76- }
71+ logger.lifecycle(" Environment health check(s) succeed: $count " )
7772 } catch (e: EnvironmentException ) {
7873 val message = " Environment health check(s) failed. Success ratio: $count :\n " +
7974 all.sortedWith(compareBy({ it.passed }, { it.check.name })).joinToString(" \n " )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ open class EnvironmentHosts : EnvironmentDefaultTask() {
77
88 @TaskAction
99 fun appendHosts () {
10- logger.lifecycle(" Hosts entries to be appended to ${environment.hosts.osFile} :" )
10+ logger.lifecycle(" Hosts entries to be appended to ${environment.hosts.osFile.get() } :" )
1111 logger.quiet(environment.hosts.appendix)
1212 }
1313
You can’t perform that action at this time.
0 commit comments