dlss-capistrano 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/dlss-capistrano.gemspec +1 -1
- data/lib/dlss/capistrano/tasks/deployed_branch.rake +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7eea74ee6a9ac9242202225bf1f5483e90bdeb69cdac2610023991f665d6c205
|
|
4
|
+
data.tar.gz: c0e1dad48ea7b768620c6f4e067daae07068441e667534c22c8360cf2adfb649
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/dlss-capistrano.gemspec
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|