bin/check-smart-status.rb in sensu-plugins-disk-checks-0.0.1.alpha.4 vs bin/check-smart-status.rb in sensu-plugins-disk-checks-0.0.1

- old
+ new

@@ -117,11 +117,11 @@ description: 'Process a debug file for testing', required: false # Main function # - def run + def run # rubocop:disable all @smart_attributes = JSON.parse(IO.read(File.dirname(__FILE__) + '/smart.json'), symbolize_names: true)[:smart][:attributes] @smart_debug = config[:debug] == 'on' # Set default threshold default_threshold = config[:defaults].split(',') @@ -225,10 +225,10 @@ value >> 32 end # find all devices from /proc/partitions or from parameter # - def find_devices + def find_devices # rubocop:disable all # Return parameter value if it's defined return config[:devices].split(',') unless config[:devices] == 'all' # List all device and split it by new line all = `cat /proc/partitions`.split("\n")