Method: God::System::SlashProcPoller.usable?

Defined in:
lib/god/system/slash_proc_poller.rb

.usable?Boolean

FreeBSD has /proc by default, but nothing mounted there! So we should check for the actual required paths! Returns true if RequiredPaths are readable.

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/god/system/slash_proc_poller.rb', line 16

def self.usable?
  RequiredPaths.all? do |path|
    test(?r, path) && readable?(path)
  end
end