sensu-plugins-minio 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/check-minio-update.rb +3 -3
- data/lib/sensu/plugins/minio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4bc8d2f5ad0c544a432fde71de635b0e33dacede694d26a93c6dcab39571a6d
|
4
|
+
data.tar.gz: 81c09b508442e42f6226edc88a14bb6f629bff448b15663a20f6f48d93a4c571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1acb7a14b304de0be3c3d465ff76c909ab17e5ae281e7bb5201173731f7c8ed9fba8d738c3911604f1b6de843126120a56c2e7ba1caba11a6efe3e239164fbc4
|
7
|
+
data.tar.gz: 6c3c5b323a7adada77dd91e9fe2910cf8dbcf1aecf277f4f4127dd3fa95df91d98894377b3a0eb0f67d54a9fc61d26aaab8a508d29757d1f2b45f4be2f9f00b1
|
data/Gemfile.lock
CHANGED
data/bin/check-minio-update.rb
CHANGED
@@ -62,14 +62,14 @@ class CheckMinioUpdate < Sensu::Plugin::Check::CLI
|
|
62
62
|
unknown "Unable to gather latest minio version: #{response.body}"
|
63
63
|
end
|
64
64
|
|
65
|
-
stdout_str, error_str, status = Open3.capture3('minio
|
65
|
+
stdout_str, error_str, status = Open3.capture3('minio')
|
66
66
|
if status.success?
|
67
|
-
local_version = stdout_str.
|
67
|
+
local_version = stdout_str.split.last
|
68
68
|
else
|
69
69
|
unknown "Unable to gather local minio version: #{error_str}"
|
70
70
|
end
|
71
71
|
|
72
|
-
if latest_version == local_version
|
72
|
+
if latest_version.split('.').last == local_version.tr(':', '-')
|
73
73
|
ok 'No new minio version available'
|
74
74
|
else
|
75
75
|
critical "New minio version available #{latest_version}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-minio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hauke Altmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|