dlss-capistrano 4.1.1 → 4.1.2

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: 7c83f228efbada9563b37dee41ba9d92c9c0739be6ae0852e9141fd8bdfa27d8
4
- data.tar.gz: b32eb019a8ff21b5e492a91c8a59ff133aed7f07b0143e6c49953c794c5b3ed6
3
+ metadata.gz: 9d66559293449af299acd608c960a54b1b6c3a6de28eac2f64ac1eaf7843a569
4
+ data.tar.gz: 75a11d2e2b0c425c387b57f84adeacafcb87e7378651bf4668bad3267a11b5d9
5
5
  SHA512:
6
- metadata.gz: b09739793af365242f7e7295fded043596973d12ae22096fd526411a7843ed495d93d43ea77a2b8211c0bf7d4529ad3005162e222302b0d7f17ede5a48f857a8
7
- data.tar.gz: 39394b595c334c1ba591bdd8bcab7053a951281261e312703feb00efbf4a9e327a1c935f376bf9eaeeb35e8d98a305a0e97713dc39aa3ee1ab89143e671ff049
6
+ metadata.gz: 757547984fdc9d9a81880c305acdf923322a273e3ae7c7f4e0d6f071f400d89736f29b795c9bec9f98cf1d46ada1d4fa637fa4c4565340194e3b44c20d483393
7
+ data.tar.gz: 4ae750a71ac9bfb199dfd3091d4e64b6ab05590e4807895ca20f1f2ccec4e9fb7260bf2c0e0bb5e33bb2ec1250efcf45df6ffc4087f69e6c3e085fb45f1dae31
@@ -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 = '4.1.1'
7
+ s.version = '4.1.2'
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Chris Beer", 'Mike Giarlo']
@@ -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.match?(/FAILED/)
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
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.1.1
4
+ version: 4.1.2
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-04-21 00:00:00.000000000 Z
12
+ date: 2022-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano