virtop 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/virtop +15 -1
- metadata +3 -3
data/bin/virtop
CHANGED
@@ -2,13 +2,27 @@
|
|
2
2
|
|
3
3
|
begin
|
4
4
|
require 'libvirt'
|
5
|
-
require 'ncurses'
|
6
5
|
require 'uri'
|
7
6
|
rescue LoadError => e
|
8
7
|
$stderr.puts( e.message )
|
9
8
|
exit( 1 )
|
10
9
|
end
|
11
10
|
|
11
|
+
begin
|
12
|
+
require 'ncurses'
|
13
|
+
rescue LoadError
|
14
|
+
$stderr.puts <<EOF
|
15
|
+
The Ruby bindings to the ncurses library are missing. The ncurses gem on
|
16
|
+
rubygems.org is not working with Ruby 1.9, so please issue the following
|
17
|
+
commands as superuser to install a working ncurses gem from github.com:
|
18
|
+
|
19
|
+
gem source -a http://gems.github.com
|
20
|
+
gem install elliottcable-ncurses
|
21
|
+
|
22
|
+
EOF
|
23
|
+
exit( 1 )
|
24
|
+
end
|
25
|
+
|
12
26
|
if( ARGV.size < 1 )
|
13
27
|
url = 'qemu:///system'
|
14
28
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- henning mueller
|