check_disk 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: e75c7f1083d953a6df527f0a2d8662d04df90a43
4
- data.tar.gz: 5a98db23f0176da00c9185cc6f00b22a0633dcdb
3
+ metadata.gz: 49f018b212e0d667aecaacd85fac5865b148b54f
4
+ data.tar.gz: 2679cbe60e1a9e5a592e44d5b7daf08248285cbd
5
5
  SHA512:
6
- metadata.gz: a01e6469e84c201fc48a8c42db1238710d2ae7ee96e208fefa04e2560af465381391e40f00c38cee0ab351e19c57430bc3cdf01ddec20bacec17346da193a466
7
- data.tar.gz: 8e59a6f5a6cb08f89f3ee9f763d2ac3f313306b2a55e5f76fa74002bd504ec1ddf0b191f518e4891e2bd2d4886857c836fec6569f0ca11f4aba63c80a68ce74b
6
+ metadata.gz: 963bcb0acc8eec3205aaba5cf3a0de70c0db1f97602692a58e1072e51de2107a31afbcbd92ff76204b559a9bed9571809f62eddd8d5f15728ee448d347bbbc8e
7
+ data.tar.gz: 1d6a5c70aebf56516533c5bf75845991379f0639feddf67dc1200baa36a185a7e7a2536858a7ed8ca9f5cb3e96c766979f1910a07a7d2a651b612b85b0943ee3
checksums.yaml.gz.sig CHANGED
Binary file
data/bin/check_disk.rb CHANGED
@@ -60,8 +60,8 @@ module CheckDisk
60
60
 
61
61
  def common_check(disk)
62
62
  message(disk.message)
63
- warning if disk.warning?
64
63
  critical if disk.critical?
64
+ warning if disk.warning?
65
65
  end
66
66
 
67
67
  # Adds a `-p` or `--path` option to our CLI.
@@ -100,7 +100,7 @@ module CheckDisk
100
100
  option(
101
101
  :warning,
102
102
  short: '-w PERCENT',
103
- proc: proc { |a| a.to_i },
103
+ proc: proc(&:to_i),
104
104
  default: 50,
105
105
  description: 'The high water mark for `warning` alerts. eg; 50'
106
106
  )
@@ -111,7 +111,7 @@ module CheckDisk
111
111
  option(
112
112
  :critical,
113
113
  short: '-c PERCENT',
114
- proc: proc { |a| a.to_i },
114
+ proc: proc(&:to_i),
115
115
  default: 75,
116
116
  description: 'The high water mark for `critical` alerts. eg; 75'
117
117
  )
data/lib/check_disk.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # CheckDisk Version
2
2
  module CheckDisk
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
@@ -1,5 +1,6 @@
1
1
  require 'minitest/autorun'
2
2
 
3
+ # Allow testing our `check_disk` bin file.
3
4
  module SensuPluginTestHelper
4
5
  def script(script)
5
6
  s = Pathname.new(script)
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- RO
2
- �n���VR{��C?�(Zy����m���/��>.G‘l2���!�����lOO^������
1
+ .la5;��%��� j3ڠ+�����W�3���7s^J���ܲ��t���8���}��n�˟�& B
2
+ _���K��-�6_Yi�n��BW��(��uE��������ס�)A\Ѷ�bx�M�^7UU���Q�H������e}�sKt�`�W��G!�;P}t�e�KtH�Y
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_disk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miah Johnson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  HceOUVz35kgamNj0WW4lNAHyZi7cS0MeI/0B/AGUkaG7gWvyGBAgr1gJ2+4kMmcY
31
31
  vg9xNKI52TEvhr97dNRNTQ==
32
32
  -----END CERTIFICATE-----
33
- date: 2014-12-02 00:00:00.000000000 Z
33
+ date: 2015-01-16 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
- rubygems_version: 2.2.2
201
+ rubygems_version: 2.4.5
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Sensu CLI Command Check for disk inode and block usage.
metadata.gz.sig CHANGED
Binary file