rps 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +6 -1
- data/bin/rps +3 -0
- data/lib/rps.rb +11 -1
- data/lib/rps/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -6,7 +6,12 @@ ps for Ruby processes. Linux only at the moment.
|
|
6
6
|
|
7
7
|
$ rps
|
8
8
|
|
9
|
-
=
|
9
|
+
= TODO:
|
10
|
+
|
11
|
+
* BSD/OS X ?
|
12
|
+
- FFI
|
13
|
+
- kvm_getprocs() http://www.manpages.info/macosx/kvm_getprocs.3.html
|
14
|
+
- http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/ps/
|
10
15
|
|
11
16
|
== Note on Patches/Pull Requests
|
12
17
|
|
data/bin/rps
CHANGED
data/lib/rps.rb
CHANGED
@@ -1,5 +1,15 @@
|
|
1
|
+
require "rbconfig"
|
2
|
+
|
1
3
|
module RPS
|
2
|
-
|
4
|
+
def self.os
|
5
|
+
@os ||= RbConfig::CONFIG['host_os']
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.check_platform
|
9
|
+
unless os =~ /linux/i
|
10
|
+
abort "rps only works on linux at the moment"
|
11
|
+
end
|
12
|
+
end
|
3
13
|
end
|
4
14
|
|
5
15
|
require "rps/cli"
|
data/lib/rps/version.rb
CHANGED