xen-ruby 0.7 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -2,6 +2,8 @@ A simple ruby module to admin xen instances
2
2
  This gem includes a log mechanism (log4r) with various modes (DEBUG, INFO, WARN ...).
3
3
 
4
4
 
5
+ gem install xen-ruby
6
+
5
7
  How to use it :
6
8
 
7
9
  ###########################
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7
1
+ 0.7.1
@@ -24,6 +24,7 @@ module System
24
24
  @output = `#{command} 2>&1`
25
25
  @exit_status = $?.exitstatus
26
26
  log if error?
27
+ return self
27
28
  end
28
29
 
29
30
  def error?
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-xen}
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}
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-xen.gemspec"
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: 5
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- version: "0.7"
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-12 00:00:00 Z
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-xen.gemspec
116
+ - xen-ruby.gemspec
116
117
  homepage: http://github.com/foexle/ruby-xen
117
118
  licenses:
118
119
  - GPL