Sha256: 66682440f8b24146e74a5f221029f6e26c2cc6ddf41b692f1fb01578c5329ac2
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
desc 'display the deployed branch and commit' task :deployed_branch do # see https://github.com/mattbrictson/airbrussh/tree/v1.5.2?tab=readme-ov-file#capistrano-34x Airbrussh.configure do |config| config.truncate = false end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dlss-capistrano-5.3.0 | lib/dlss/capistrano/tasks/deployed_branch.rake |
dlss-capistrano-5.2.0 | lib/dlss/capistrano/tasks/deployed_branch.rake |