openvz 1.5.4 → 1.5.5

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.
@@ -9,7 +9,7 @@ module OpenVZ
9
9
  autoload :Util, "openvz/util"
10
10
  autoload :ConfigHash, "openvz/confighash"
11
11
 
12
- VERSION = "1.5.4"
12
+ VERSION = "1.5.5"
13
13
 
14
14
  def self.version
15
15
  VERSION
@@ -1,6 +1,8 @@
1
1
  module OpenVZ
2
2
  class Inventory < ConfigHash
3
- def initialize()
3
+ def initialize(data={})
4
+ @data = {}
5
+ update!(data)
4
6
  @vzlist = "/usr/sbin/vzlist"
5
7
  end
6
8
 
@@ -63,6 +63,7 @@ module OpenVZ
63
63
 
64
64
  # Actually does the systemu call passing in the correct environment, stdout and stderr
65
65
  def runcommand
66
+ require 'systemu'
66
67
  opts = {"env" => @environment,
67
68
  "stdout" => @stdout,
68
69
  "stderr" => @stderr,
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 5
9
- - 4
10
- version: 1.5.4
8
+ - 5
9
+ version: 1.5.5
11
10
  platform: ruby
12
11
  authors:
13
12
  - Stefan Schlesinger
@@ -15,17 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2012-10-09 00:00:00 Z
17
+ date: 2012-10-09 00:00:00 +02:00
18
+ default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: systemu
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
25
  - - ">="
27
26
  - !ruby/object:Gem::Version
28
- hash: 3
29
27
  segments:
30
28
  - 0
31
29
  version: "0"
@@ -52,6 +50,7 @@ files:
52
50
  - lib/openvz.rb
53
51
  - openvz.gemspec
54
52
  - README.md
53
+ has_rdoc: true
55
54
  homepage: http://github.com/sts/ruby-openvz
56
55
  licenses: []
57
56
 
@@ -61,27 +60,23 @@ rdoc_options: []
61
60
  require_paths:
62
61
  - lib
63
62
  required_ruby_version: !ruby/object:Gem::Requirement
64
- none: false
65
63
  requirements:
66
64
  - - ">="
67
65
  - !ruby/object:Gem::Version
68
- hash: 3
69
66
  segments:
70
67
  - 0
71
68
  version: "0"
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- hash: 3
78
73
  segments:
79
74
  - 0
80
75
  version: "0"
81
76
  requirements: []
82
77
 
83
78
  rubyforge_project:
84
- rubygems_version: 1.8.21
79
+ rubygems_version: 1.3.6
85
80
  signing_key:
86
81
  specification_version: 3
87
82
  summary: OpenVZ API