Created
June 20, 2012 16:39
-
-
Save robfletcher/2960842 to your computer and use it in GitHub Desktop.
Automatically display last deployment time in your Cloud Foundry app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eventCfUpdateStart = { | |
metadata.'cf.last.deployed' = new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | |
metadata.persist() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Last updated: <g:formatDate date="${Date.parse(/yyyy-MM-dd'T'HH:mm:ssZ/, grailsApplication.metadata.'cf.last.deployed')}"/></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment