Method: CachedDeploy#previous_release
- Defined in:
- lib/chef-deploy/cached_deploy.rb
#previous_release(current = latest_release) ⇒ Object
65 66 67 68 |
# File 'lib/chef-deploy/cached_deploy.rb', line 65 def previous_release(current=latest_release) index = all_releases.index(current) all_releases[index-1] end |