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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35f60a0e03d4cd45c327c445ca34cb00da52ac632dbffcb3d2d9d7654b460544
4
- data.tar.gz: f0b97784a6b4cbf5abf12413f5ee853b85ec804a013ff8aeb744cb86337b1c73
3
+ metadata.gz: f4bc8d2f5ad0c544a432fde71de635b0e33dacede694d26a93c6dcab39571a6d
4
+ data.tar.gz: 81c09b508442e42f6226edc88a14bb6f629bff448b15663a20f6f48d93a4c571
5
5
  SHA512:
6
- metadata.gz: 69d90a95f4530b3fe770f2102f97e74a58442a866cd4a3b606b305ec86fb584a54aa396e4321a1b0b0e7559f48d192cbafd9490348a140569eaf2425f6eb7672
7
- data.tar.gz: 7f357373eefa2b99d5e6d3635f7c3dd44201b75c6042b1678b1e7c9d149d1a46ca56d84e61c139063215002108aa120a200dfea98584344abaebb0edc681270b
6
+ metadata.gz: 1acb7a14b304de0be3c3d465ff76c909ab17e5ae281e7bb5201173731f7c8ed9fba8d738c3911604f1b6de843126120a56c2e7ba1caba11a6efe3e239164fbc4
7
+ data.tar.gz: 6c3c5b323a7adada77dd91e9fe2910cf8dbcf1aecf277f4f4127dd3fa95df91d98894377b3a0eb0f67d54a9fc61d26aaab8a508d29757d1f2b45f4be2f9f00b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sensu-plugins-minio (0.0.1)
4
+ sensu-plugins-minio (0.0.2)
5
5
  sensu-plugin (~> 2.1)
6
6
 
7
7
  GEM
@@ -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 version')
65
+ stdout_str, error_str, status = Open3.capture3('minio')
66
66
  if status.success?
67
- local_version = stdout_str.lines.at(1).split.last
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}"
@@ -3,7 +3,7 @@
3
3
  module Sensu
4
4
  module Plugins
5
5
  module Minio
6
- VERSION = '0.0.1'
6
+ VERSION = '0.0.2'
7
7
  end
8
8
  end
9
9
  end
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.1
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-10-14 00:00:00.000000000 Z
11
+ date: 2019-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin