Parses capistrano revisions.log file for deployment information
Add this line to your application's Gemfile:
gem 'capistrano-release-info'And then execute:
$ bundleOr install it yourself as:
$ gem install capistrano-release-infoThis gem exposes two module methods available.
Capistrano::ReleaseInfo.current
# Deployement Hash
# {
# :branch => "master",
# :version => "9b7d10bab806d0f5e8b5185cf5c295c24cc95480",
# :released_at => Sat, 19 Oct 2019 08:47:56 PDT -07:00,
# :released_by => "ajaya"
# }Capistrano::ReleaseInfo.releases
# An array of deployements- Fork it ( https://github.com/codetheoryio/release-info/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request