static GroovyEmbeddedApp of( @DelegatesTo(value = GroovyRatpackServerSpec.class, strategy = Closure.DELEGATE_FIRST) Closure<?> definition) throws Exception { return from( EmbeddedApp.of( s -> ClosureUtil.configureDelegateFirst(GroovyRatpackServerSpec.from(s), definition))); }
static GroovyEmbeddedApp fromServer( ServerConfig serverConfig, @DelegatesTo(value = GroovyRatpackServerSpec.class, strategy = Closure.DELEGATE_FIRST) Closure<?> definition) { return from( EmbeddedApp.fromServer( serverConfig, s -> ClosureUtil.configureDelegateFirst(GroovyRatpackServerSpec.from(s), definition))); }