Skip to content

Instantly share code, notes, and snippets.

@slant
Created December 27, 2012 23:59
Show Gist options
  • Save slant/4393329 to your computer and use it in GitHub Desktop.
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
# 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