diff options
Diffstat (limited to 'lib/ohai/plugins/openbsd/ps.rb')
-rw-r--r-- | lib/ohai/plugins/openbsd/ps.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ohai/plugins/openbsd/ps.rb b/lib/ohai/plugins/openbsd/ps.rb index f4823327..876ded11 100644 --- a/lib/ohai/plugins/openbsd/ps.rb +++ b/lib/ohai/plugins/openbsd/ps.rb @@ -16,9 +16,13 @@ # limitations under the License. # -provides "command/ps" +Ohai.plugin(:Ps) do + provides "command/ps" -require_plugin 'command' + depends 'command' -# ps -e requires procfs -command[:ps] = 'ps -ax' + collect_data do + # ps -e requires procfs + command[:ps] = 'ps -ax' + end +end |