Sha256: 963002e9999fa7e7658ecfc28269e80b72210d06072e67ad1ce59c41bd3ed0c9

Contents?: true

Size: 295 Bytes

Versions: 16

Compression:

Stored size: 295 Bytes

Contents

desc 'display the deployed branch and commit'
task :deployed_branch do
  on roles(:app) do |host|
    within current_path do
      revision = capture :cat, 'REVISION'
      branches = `git branch -r --contains #{revision}`.strip
      info "#{host}: #{revision} (#{branches})"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dlss-capistrano-4.4.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.4.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.3.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.3.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.2.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.2.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.1.2 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.1.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.1.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-4.0.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.11.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.11.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.10.1 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.10.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.9.0 lib/dlss/capistrano/tasks/deployed_branch.rake
dlss-capistrano-3.8.0 lib/dlss/capistrano/tasks/deployed_branch.rake