View sample.sh
#!/bin/sh
if [ "`git --git-dir="/path/to/your/repo/.git" log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git --git-dir="/path/to/your/repo/.git" ls-remote origin -h refs/heads/master |cut -f1`" ]
then
echo "Repo up to date"
else
echo "Updates available .. pull changes and do magic here"
fi
View SitemapController.groovy
/**
* A Sitemap controller that automatically generates sitemap.xml for a grails website.
*
* Be sure to notice the controllerNamesToExclude and actionsToExclude lists
*
* References:
* http://stackoverflow.com/questions/3748125/xml-sitemap-in-grails
* http://stackoverflow.com/questions/2956294/reading-out-all-actions-in-a-grails-controller
*
*/
View HttpServerTest.groovy
import org.vertx.java.core.Vertx
import org.vertx.java.core.http.HttpServer
class HttpServerTest {
Vertx vertx
HttpServer httpServer
HttpServerTest() {
vertx = Vertx.newVertx()