dlss-capistrano 4.1.1 → 4.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0724403e57fa0f441c1d7de0fb9b9a0ed83e75057a940b913054d78bd07caa25
|
|
4
|
+
data.tar.gz: 0a370ab39ee774e77774cc6ca6844a005f11785f28c8de74778d9de4de4cc9ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea632bb0079a6bbf889b26794770340b4afd834827312522d5e705b92ac52f66a053804c045edcd7fbe6ec33868a9736727a3143be6e417819dcaf1a86cecaa6
|
|
7
|
+
data.tar.gz: 8184b96b3faf4855f9ab8c1225385046477719642950a062bc47241ec0e71ae4420cac854836ae367fe9637816977161be7326cba199bcde9494dead5c5678aa
|
data/dlss-capistrano.gemspec
CHANGED
|
@@ -14,8 +14,12 @@ task :check_status do
|
|
|
14
14
|
info "Checking status at #{status_url}"
|
|
15
15
|
status_body = capture("curl #{status_url}")
|
|
16
16
|
|
|
17
|
-
if status_body.
|
|
17
|
+
if status_body.nil?
|
|
18
|
+
error 'Endpoint could not be reached'
|
|
19
|
+
elsif status_body.match?(/FAILED/)
|
|
18
20
|
error status_body.lines.grep(/FAILED/).join
|
|
21
|
+
elsif !status_body.match?(/PASSED/)
|
|
22
|
+
error status_body
|
|
19
23
|
else
|
|
20
24
|
info SSHKit::Color.new($stdout).colorize('All checks passed!', :green)
|
|
21
25
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
desc "ssh to the current directory on the server"
|
|
2
|
+
task :update_global_strscan do
|
|
3
|
+
on roles(:app) do |host|
|
|
4
|
+
strscan_version = within release_path do
|
|
5
|
+
capture(:bundle, 'exec', 'ruby', '-e', '"puts Gem::Specification.find_by_name(\'strscan\').version"', ' || true')
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
if strscan_version.empty?
|
|
9
|
+
warn 'strscan is not installed'
|
|
10
|
+
else
|
|
11
|
+
execute "gem install strscan --silent --no-document -v #{strscan_version}"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
if Rake::Task.task_defined? :'passenger:restart'
|
|
17
|
+
before :'passenger:restart', :update_global_strscan
|
|
18
|
+
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: 4.
|
|
4
|
+
version: 4.2.1
|
|
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: 2022-
|
|
12
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|
|
@@ -95,6 +95,7 @@ files:
|
|
|
95
95
|
- lib/dlss/capistrano/tasks/sneakers_systemd.rake
|
|
96
96
|
- lib/dlss/capistrano/tasks/ssh.rake
|
|
97
97
|
- lib/dlss/capistrano/tasks/ssh_check.rake
|
|
98
|
+
- lib/dlss/capistrano/tasks/strscan.rake
|
|
98
99
|
- lib/lyberteam-capistrano-devel.rb
|
|
99
100
|
homepage:
|
|
100
101
|
licenses:
|