Created
December 27, 2012 23:59
-
-
Save slant/4393329 to your computer and use it in GitHub Desktop.
Capistrano task for outputting the last release date and time in human readable format
This file contains hidden or 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
# Usage: | |
# $ cap last_release | |
# Thu, Dec 27, 2012 at 9:47am +0000 | |
task :last_release do | |
puts DateTime.parse(latest_release.split('/')[-1]).strftime('%a, %b %d, %Y at %l:%M%P %z').squeeze(' ') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment