Module: Facter::Util::POSIX
- Defined in:
- lib/facter/util/posix.rb
Class Method Summary collapse
-
.sysctl(mib) ⇒ Object
private
Provides a consistent way of invoking sysctl(8) across POSIX platforms.
Class Method Details
.sysctl(mib) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Provides a consistent way of invoking sysctl(8) across POSIX platforms
9 10 11 |
# File 'lib/facter/util/posix.rb', line 9 def sysctl(mib) Facter::Util::Resolution.exec("sysctl -n #{mib} 2>/dev/null") end |