Class: CheckDisk::Inode
Overview
Interface for checking Inodes.
Instance Method Summary collapse
- #available ⇒ Object
- #critical? ⇒ Boolean
-
#initialize(config) ⇒ Inode
constructor
A new instance of Inode.
- #message ⇒ Object
- #percent_used ⇒ Object
- #total ⇒ Object
- #used ⇒ Object
- #warning? ⇒ Boolean
Constructor Details
#initialize(config) ⇒ Inode
Returns a new instance of Inode.
6 7 8 |
# File 'lib/check_disk/inodes.rb', line 6 def initialize(config) super end |
Instance Method Details
#available ⇒ Object
14 15 16 |
# File 'lib/check_disk/inodes.rb', line 14 def available inodes_available end |
#critical? ⇒ Boolean
30 31 32 |
# File 'lib/check_disk/inodes.rb', line 30 def critical? percent_of_inodes_used > critical end |
#message ⇒ Object
34 35 36 37 |
# File 'lib/check_disk/inodes.rb', line 34 def "#{ percent_of_inodes_used }% of inodes used. " \ "path: #{ path } total: #{ total } available: #{ available }" end |
#percent_used ⇒ Object
22 23 24 |
# File 'lib/check_disk/inodes.rb', line 22 def percent_used percent_of_inodes_used end |
#total ⇒ Object
10 11 12 |
# File 'lib/check_disk/inodes.rb', line 10 def total inodes_total end |
#used ⇒ Object
18 19 20 |
# File 'lib/check_disk/inodes.rb', line 18 def used inodes_used end |
#warning? ⇒ Boolean
26 27 28 |
# File 'lib/check_disk/inodes.rb', line 26 def warning? percent_of_inodes_used > warning end |