ldaley / grails-remote-control

Facilitates executing commands (closures) against remote or local Grails applications
Apache License 2.0
23 stars 16 forks source link

fix remote execution syntax in docs #30

Open ghost opened 8 years ago

ghost commented 8 years ago

The docs show various examples of remote execution such as

        def id = remote {
            def person = new Person(name: "Me")
            person.save()
            person.id
        }

But as far as I can tell this doesn't work and remote.exec should be used instead, e.g.

        def id = remote.exec {
            def person = new Person(name: "Me")
            person.save()
            person.id
        }