xen-ruby 0.7 → 0.7.1
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 +2 -0
- data/VERSION +1 -1
- data/lib/system/command.rb +1 -0
- data/lib/xen/instance.rb +3 -3
- data/{ruby-xen.gemspec → xen-ruby.gemspec} +4 -4
- metadata +5 -4
data/README
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7
|
1
|
+
0.7.1
|
data/lib/system/command.rb
CHANGED
data/lib/xen/instance.rb
CHANGED
@@ -32,7 +32,7 @@ module Xen
|
|
32
32
|
def find_by_name(name)
|
33
33
|
find = System::Command.new("sudo xm list #{name}", :command_level => 1)
|
34
34
|
find.execute
|
35
|
-
instance_from_output(find.output.split("\n").last)
|
35
|
+
instance_from_output(find.output.split("\n").last) if find.exit_status == 0
|
36
36
|
end
|
37
37
|
alias :[] :find_by_name
|
38
38
|
|
@@ -41,7 +41,7 @@ module Xen
|
|
41
41
|
def find_attributes_by_name(name)
|
42
42
|
find = System::Command.new("sudo xm list #{name}", :command_level => 1)
|
43
43
|
find.execute
|
44
|
-
attributes_from_output(find.output)
|
44
|
+
attributes_from_output(find.output) if find.exit_status == 0
|
45
45
|
end
|
46
46
|
|
47
47
|
# Vars = :id, :name, :memory, :hdd, :cpus, :status
|
@@ -65,8 +65,8 @@ module Xen
|
|
65
65
|
cmd
|
66
66
|
|
67
67
|
create_image = System::Command.new(command, :command_level => 2)
|
68
|
-
create_image.execute
|
69
68
|
attributes.merge(:password => password.output.strip)
|
69
|
+
create_image.execute
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
@@ -4,12 +4,12 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{ruby
|
8
|
-
s.version = "0.7"
|
7
|
+
s.name = %q{xen-ruby}
|
8
|
+
s.version = "0.7.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Heiko Kr\303\244mer", "Clemens Kofler"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-14}
|
13
13
|
s.description = %q{simple gem to controle xen dom0}
|
14
14
|
s.email = %q{kraemer@avarteq.de}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/xen/instance.rb",
|
29
29
|
"lib/xen/server.rb",
|
30
30
|
"lib/xen/util.rb",
|
31
|
-
"ruby
|
31
|
+
"xen-ruby.gemspec"
|
32
32
|
]
|
33
33
|
s.homepage = %q{http://github.com/foexle/ruby-xen}
|
34
34
|
s.licenses = ["GPL"]
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xen-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.7.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Heiko Kr\xC3\xA4mer"
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-04-
|
19
|
+
date: 2011-04-14 00:00:00 Z
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -112,7 +113,7 @@ files:
|
|
112
113
|
- lib/xen/instance.rb
|
113
114
|
- lib/xen/server.rb
|
114
115
|
- lib/xen/util.rb
|
115
|
-
- ruby
|
116
|
+
- xen-ruby.gemspec
|
116
117
|
homepage: http://github.com/foexle/ruby-xen
|
117
118
|
licenses:
|
118
119
|
- GPL
|