dlss-capistrano 3.7.0 → 3.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 877a173e1e6e8e32cd4c48df5cf8b59011114d87994f5e747924cab409bf37d2
4
- data.tar.gz: 5a0cc74142192b5e4c4a77809d318f0b4dcd138ecd488ff787e78de3ce2a8486
3
+ metadata.gz: 7eea74ee6a9ac9242202225bf1f5483e90bdeb69cdac2610023991f665d6c205
4
+ data.tar.gz: c0e1dad48ea7b768620c6f4e067daae07068441e667534c22c8360cf2adfb649
5
5
  SHA512:
6
- metadata.gz: 21fbedcc886454cd536e083edc07a73e38842e1bbd9dbaba00b1de9e8912b8eac2f7ef3bf902d5885f960199be7224ec6709c05c6b2da295d90118cfe6e54f21
7
- data.tar.gz: 9dc3c858babe7710cef6f6a5b50878206bff508977048e226a54387b1f58cd84a5ccc9328e34b01a9c0f2a1a79e484b780d45aca23247db7e14a5ca46791a0d1
6
+ metadata.gz: 249eefe27bc33417be80b1418c82fcb1766658e3fa4f35807725d98492e2eeeec3db8d92eccc3eff5a1d3cac5cc937007a41a25d547f168770e93c77449a2a72
7
+ data.tar.gz: 8ebf45a2df37fd94887f14c37e9aec109ab4aa939cd45ad5f413273c9fe2e3a3d7cd749c26892b1cc859aa8de67ad1d573476a113832a7b3644b081d119f9a91
data/README.md CHANGED
@@ -35,6 +35,10 @@ Set this in `config/deploy.rb` to automate the symlink creation, and then use `X
35
35
 
36
36
  `cap ENV ssh` establishes an SSH connection to the host running in `ENV` environment, and changes into the current deployment directory
37
37
 
38
+ ### Display Revision (and branches)
39
+
40
+ `cap ENV deployed_branch` displays the currently deployed revision (commit ID) and any branches containing the revision for each server in `ENV`.
41
+
38
42
  ### Sidekiq via systemd
39
43
 
40
44
  `cap ENV sidekiq_systemd:{quiet,stop,start,restart}`: quiets, stops, starts, restarts Sidekiq via systemd.
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "dlss-capistrano"
7
- s.version = "3.7.0"
7
+ s.version = "3.8.0"
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Chris Beer", 'Mike Giarlo']
@@ -0,0 +1,10 @@
1
+ desc 'display the deployed branch and commit'
2
+ task :deployed_branch do
3
+ on roles(:app) do |host|
4
+ within current_path do
5
+ revision = capture :cat, 'REVISION'
6
+ branches = `git branch -r --contains #{revision}`.strip
7
+ info "#{host}: #{revision} (#{branches})"
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlss-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-19 00:00:00.000000000 Z
12
+ date: 2020-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -87,6 +87,7 @@ files:
87
87
  - lib/dlss/capistrano.rb
88
88
  - lib/dlss/capistrano/tasks/bundle_config.rake
89
89
  - lib/dlss/capistrano/tasks/bundled_sidekiq.rake
90
+ - lib/dlss/capistrano/tasks/deployed_branch.rake
90
91
  - lib/dlss/capistrano/tasks/sidekiq_systemd.rake
91
92
  - lib/dlss/capistrano/tasks/ssh.rake
92
93
  - lib/lyberteam-capistrano-devel.rb