Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroovyEmbeddedApp should implement ratpack.groovy.Groovy.Ratpack #925

Closed
erdi opened this issue Feb 28, 2016 · 5 comments
Closed

GroovyEmbeddedApp should implement ratpack.groovy.Groovy.Ratpack #925

erdi opened this issue Feb 28, 2016 · 5 comments
Assignees
Milestone

Comments

@erdi
Copy link
Member

erdi commented Feb 28, 2016

I don't see any reason why it couldn't do so and if it did then you could use the familiar dsl available in Ratpack Groovy scripts when defining embedded applications.

@ldaley
Copy link
Member

ldaley commented Mar 22, 2016

That's a pretty good idea.

@johnrengelman
Copy link
Member

Do we actually mean this class? https://github.com/ratpack/ratpack/blob/master/ratpack-groovy/src/main/java/ratpack/groovy/server/GroovyRatpackServerSpec.java

GroovyEmbeddedApp seems to just be the entry point with the of method.

@erdi
Copy link
Member Author

erdi commented May 25, 2016

The idea is to be able to use the exact same dsl when defining a groovy
embedded app as the one used in ratpack.groovy.

Why don't we just add another a static method that will take a closure that
delegates to ratpack.groovy.Groovy.Ratpack?

On Monday, 23 May 2016, John Engelman notifications@github.com wrote:

If so this doesn't appear to be possible as:

https://github.com/ratpack/ratpack/blob/master/ratpack-groovy/src/main/java/ratpack/groovy/Groovy.java#L135

and

https://github.com/ratpack/ratpack/blob/master/ratpack-groovy/src/main/java/ratpack/groovy/server/GroovyRatpackServerSpec.java#L41

clash.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#925 (comment)

@johnrengelman
Copy link
Member

@erdi - #992

@ldaley ldaley closed this as completed in 1558ffe Jul 16, 2016
ldaley added a commit that referenced this issue Jul 16, 2016
Teach GroovyEmbeddedApp about ratpack.groovy syntax. Closes #925.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants