virtop 0.0.13 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -16
- data/bin/virtop +6 -28
- data/lib/virtop.rb +1 -1
- metadata +12 -11
data/README.rdoc
CHANGED
@@ -1,22 +1,6 @@
|
|
1
1
|
== Installation ==
|
2
2
|
|
3
|
-
Add gems.github.com as a source for gems and install elliottcable-ncurses from
|
4
|
-
this mirror, because there is no version on rubygems.org which works with ruby
|
5
|
-
1.9.
|
6
|
-
|
7
|
-
* gem sources -a http://gems.github.com
|
8
|
-
* gem install elliottcable-ncurses
|
9
|
-
|
10
3
|
Build the virtop gem and install it.
|
11
4
|
|
12
5
|
* gem build virtop.gemspec
|
13
6
|
* gem install virtop-*.gem
|
14
|
-
|
15
|
-
This should install ruby-libvirt as a dependency. Seems to me, that ruby-libvirt
|
16
|
-
from rubygems.org does not build with ruby 1.9. On Arch Linux you can install
|
17
|
-
ruby-libvirt from AUR:
|
18
|
-
|
19
|
-
http://aur.archlinux.org/packages.php?ID=31952
|
20
|
-
|
21
|
-
On other platforms you have to hallucinate another solution. At the link above
|
22
|
-
you find a patch to the ruby-libvirt sources, which makes it build in ruby 1.9.
|
data/bin/virtop
CHANGED
@@ -1,29 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
require 'uri'
|
6
|
-
rescue LoadError => e
|
7
|
-
$stderr.puts e.message
|
8
|
-
exit 1
|
9
|
-
end
|
10
|
-
|
11
|
-
# Require ncurses module and print out instructions howto install it if it could
|
12
|
-
# not be loaded.
|
13
|
-
begin
|
14
|
-
require 'ncurses'
|
15
|
-
rescue LoadError
|
16
|
-
$stderr.puts <<EOF
|
17
|
-
The Ruby bindings to the ncurses library are missing. The ncurses gem on
|
18
|
-
rubygems.org is not working with Ruby 1.9, so please issue the following
|
19
|
-
commands as superuser to install a working ncurses gem from github.com:
|
20
|
-
|
21
|
-
gem source -a http://gems.github.com
|
22
|
-
gem install elliottcable-ncurses
|
3
|
+
require 'ncursesw'
|
4
|
+
require 'uri'
|
23
5
|
|
24
|
-
|
25
|
-
|
26
|
-
|
6
|
+
# Require and include virtop module. It will require libvirt.
|
7
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
8
|
+
require 'virtop'
|
9
|
+
include Virtop
|
27
10
|
|
28
11
|
# Show some lines of help.
|
29
12
|
if ['-h', '--help'].include? ARGV.first
|
@@ -41,11 +24,6 @@ EOF
|
|
41
24
|
exit 1
|
42
25
|
end
|
43
26
|
|
44
|
-
# Require and include virtop module. It will require libvirt.
|
45
|
-
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
46
|
-
require 'virtop'
|
47
|
-
include Virtop
|
48
|
-
|
49
27
|
# Connection URL will be qemu:///system if nothing else is given as the first
|
50
28
|
# parameter.
|
51
29
|
if ARGV.size < 1
|
data/lib/virtop.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
|
9
|
-
version: 0.0.13
|
9
|
+
version: 0.1.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- henning mueller
|
@@ -18,7 +18,7 @@ date: 2011-01-10 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: ncursesw
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -26,14 +26,15 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
|
-
- 0
|
30
29
|
- 1
|
31
|
-
-
|
32
|
-
|
30
|
+
- 2
|
31
|
+
- 4
|
32
|
+
- 2
|
33
|
+
version: 1.2.4.2
|
33
34
|
type: :runtime
|
34
35
|
version_requirements: *id001
|
35
36
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
+
name: ruby-libvirt
|
37
38
|
prerelease: false
|
38
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
@@ -41,10 +42,10 @@ dependencies:
|
|
41
42
|
- - ">="
|
42
43
|
- !ruby/object:Gem::Version
|
43
44
|
segments:
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
version:
|
45
|
+
- 0
|
46
|
+
- 3
|
47
|
+
- 0
|
48
|
+
version: 0.3.0
|
48
49
|
type: :runtime
|
49
50
|
version_requirements: *id002
|
50
51
|
description: virtop provides an overview of virtual machines runned with a solution abstracted by libvirt.
|