plainprograms-virtuozzo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +54 -0
- data/README.rdoc +52 -0
- data/Rakefile +15 -0
- data/lib/virtuozzo/constants.rb +10 -0
- data/lib/virtuozzo/soap/drivers/device/mapping_registry.rb +3653 -0
- data/lib/virtuozzo/soap/drivers/device/types.rb +3144 -0
- data/lib/virtuozzo/soap/drivers/device_driver.rb +141 -0
- data/lib/virtuozzo/soap/drivers/environment/mapping_registry.rb +4461 -0
- data/lib/virtuozzo/soap/drivers/environment/types.rb +3743 -0
- data/lib/virtuozzo/soap/drivers/environment_driver.rb +300 -0
- data/lib/virtuozzo/soap/drivers/network/mapping_registry.rb +3116 -0
- data/lib/virtuozzo/soap/drivers/network/types.rb +2401 -0
- data/lib/virtuozzo/soap/drivers/network_driver.rb +101 -0
- data/lib/virtuozzo/soap/drivers/process/mapping_registry.rb +3317 -0
- data/lib/virtuozzo/soap/drivers/process/types.rb +2711 -0
- data/lib/virtuozzo/soap/drivers/process_driver.rb +69 -0
- data/lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb +2985 -0
- data/lib/virtuozzo/soap/drivers/process_info/types.rb +2328 -0
- data/lib/virtuozzo/soap/drivers/process_info_driver.rb +61 -0
- data/lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb +3656 -0
- data/lib/virtuozzo/soap/drivers/relocator/types.rb +2916 -0
- data/lib/virtuozzo/soap/drivers/relocator_driver.rb +101 -0
- data/lib/virtuozzo/soap/drivers/session/mapping_registry.rb +3039 -0
- data/lib/virtuozzo/soap/drivers/session/types.rb +2453 -0
- data/lib/virtuozzo/soap/drivers/session_driver.rb +149 -0
- data/lib/virtuozzo/soap/drivers/support/mapping_registry.rb +3232 -0
- data/lib/virtuozzo/soap/drivers/support/types.rb +2708 -0
- data/lib/virtuozzo/soap/drivers/support_driver.rb +109 -0
- data/lib/virtuozzo/soap/drivers/template/mapping_registry.rb +3752 -0
- data/lib/virtuozzo/soap/drivers/template/types.rb +3079 -0
- data/lib/virtuozzo/soap/drivers/template_driver.rb +117 -0
- data/lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb +3312 -0
- data/lib/virtuozzo/soap/drivers/up2date/types.rb +2670 -0
- data/lib/virtuozzo/soap/drivers/up2date_driver.rb +92 -0
- data/lib/virtuozzo/soap.rb +149 -0
- data/lib/virtuozzo.rb +18 -0
- data/script/console +10 -0
- data/script/github-gem-test +15 -0
- data/virtuozzo.gemspec +34 -0
- metadata +139 -0
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'virtuozzo/soap/drivers/up2date/types'
|
2
|
+
require 'virtuozzo/soap/drivers/up2date/mapping_registry'
|
3
|
+
require 'soap/rpc/driver'
|
4
|
+
|
5
|
+
module Virtuozzo
|
6
|
+
module SOAP
|
7
|
+
module Drivers
|
8
|
+
# = Up2dateDriver
|
9
|
+
class Up2dateDriver < ::SOAP::RPC::Driver
|
10
|
+
DefaultEndpointUrl = "https://localhost:4646"
|
11
|
+
|
12
|
+
Methods = [
|
13
|
+
[ nil,
|
14
|
+
"get_config",
|
15
|
+
[ ["in", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "get_config"]],
|
16
|
+
["out", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "get_configResponse"]] ],
|
17
|
+
{ :request_style => :document, :request_use => :literal,
|
18
|
+
:response_style => :document, :response_use => :literal,
|
19
|
+
:faults => {} }
|
20
|
+
],
|
21
|
+
[ nil,
|
22
|
+
"set_config",
|
23
|
+
[ ["in", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "set_config"]],
|
24
|
+
["out", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "set_configResponse"]] ],
|
25
|
+
{ :request_style => :document, :request_use => :literal,
|
26
|
+
:response_style => :document, :response_use => :literal,
|
27
|
+
:faults => {} }
|
28
|
+
],
|
29
|
+
[ nil,
|
30
|
+
"list",
|
31
|
+
[ ["in", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "list"]],
|
32
|
+
["out", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "listResponse"]] ],
|
33
|
+
{ :request_style => :document, :request_use => :literal,
|
34
|
+
:response_style => :document, :response_use => :literal,
|
35
|
+
:faults => {} }
|
36
|
+
],
|
37
|
+
[ nil,
|
38
|
+
"install",
|
39
|
+
[ ["in", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "install"]],
|
40
|
+
["out", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "installResponse"]] ],
|
41
|
+
{ :request_style => :document, :request_use => :literal,
|
42
|
+
:response_style => :document, :response_use => :literal,
|
43
|
+
:faults => {} }
|
44
|
+
],
|
45
|
+
[ nil,
|
46
|
+
"uninstall",
|
47
|
+
[ ["in", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "uninstall"]],
|
48
|
+
["out", "parameter", ["::SOAP::SOAPElement", "http://www.swsoft.com/webservices/vza/4.0.0/vzaup2date", "uninstallResponse"]] ],
|
49
|
+
{ :request_style => :document, :request_use => :literal,
|
50
|
+
:response_style => :document, :response_use => :literal,
|
51
|
+
:faults => {} }
|
52
|
+
]
|
53
|
+
]
|
54
|
+
|
55
|
+
def initialize(endpoint_url = nil)
|
56
|
+
endpoint_url ||= DefaultEndpointUrl
|
57
|
+
super(endpoint_url, nil)
|
58
|
+
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
59
|
+
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
60
|
+
init_methods
|
61
|
+
end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
def init_methods
|
66
|
+
Methods.each do |definitions|
|
67
|
+
opt = definitions.last
|
68
|
+
|
69
|
+
# set options to use default namespace instead of using n[#]
|
70
|
+
opt.merge!({
|
71
|
+
:use_default_namespace => true
|
72
|
+
})
|
73
|
+
|
74
|
+
if opt[:request_style] == :document
|
75
|
+
add_document_operation(*definitions)
|
76
|
+
else
|
77
|
+
add_rpc_operation(*definitions)
|
78
|
+
qname = definitions[0]
|
79
|
+
name = definitions[2]
|
80
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
81
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
82
|
+
__send__(name, *arg)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,149 @@
|
|
1
|
+
require 'virtuozzo/soap/drivers/session_driver'
|
2
|
+
require 'virtuozzo/soap/drivers/environment_driver'
|
3
|
+
require 'virtuozzo/soap/drivers/template_driver'
|
4
|
+
require 'virtuozzo/soap/drivers/relocator_driver'
|
5
|
+
require 'virtuozzo/soap/drivers/device_driver'
|
6
|
+
require 'virtuozzo/soap/drivers/network_driver'
|
7
|
+
require 'virtuozzo/soap/drivers/process_info_driver'
|
8
|
+
require 'virtuozzo/soap/drivers/process_driver'
|
9
|
+
require 'virtuozzo/soap/drivers/up2date_driver'
|
10
|
+
require 'virtuozzo/soap/drivers/support_driver'
|
11
|
+
|
12
|
+
module Virtuozzo # :nodoc:
|
13
|
+
module SOAP # :nodoc:
|
14
|
+
# = HeaderHandler
|
15
|
+
#
|
16
|
+
# Class designed to handle parsing the header region of a SOAP envelope for
|
17
|
+
# the Virtuozzo API.
|
18
|
+
#
|
19
|
+
class HeaderHandler < SOAP::Header::SimpleHandler
|
20
|
+
NAMESPACE = 'http://www.swsoft.com/webservices/vzl/4.0.0/soap_protocol'
|
21
|
+
|
22
|
+
def initialize(session = nil, target = nil)
|
23
|
+
super(XSD::QName.new(NAMESPACE, 'packet_header'))
|
24
|
+
|
25
|
+
@session_elem = XSD::QName.new(NAMESPACE, 'session')
|
26
|
+
@target_elem = XSD::QName.new(NAMESPACE, 'target')
|
27
|
+
|
28
|
+
@session = session.to_s
|
29
|
+
@target = target.to_s
|
30
|
+
end
|
31
|
+
|
32
|
+
def on_simple_outbound
|
33
|
+
hdr = {}
|
34
|
+
|
35
|
+
hdr.merge!({@session_elem => @session}) unless @session.nil?
|
36
|
+
hdr.merge!(@target_elem => @target}) unless @target.nil? || @target == 'system'
|
37
|
+
|
38
|
+
return hdr
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# = Connection
|
43
|
+
#
|
44
|
+
# Class defining a connection to a Virtuozzo Agent instance using the SOAP
|
45
|
+
# API.
|
46
|
+
#
|
47
|
+
class Connection
|
48
|
+
def initialize(opts = {})
|
49
|
+
options = {
|
50
|
+
:host => "https://localhost:4646",
|
51
|
+
:username => "",
|
52
|
+
:password => "",
|
53
|
+
:realm => Virtuozzo::DEFAULT_REALM
|
54
|
+
}.merge(opts)
|
55
|
+
|
56
|
+
@endpoint = options[:host]
|
57
|
+
@username = options[:username]
|
58
|
+
@password = options[:pasword]
|
59
|
+
@realm = options[:realm]
|
60
|
+
|
61
|
+
setup_ssl_protection
|
62
|
+
establish_session
|
63
|
+
setup_header_handler
|
64
|
+
end
|
65
|
+
|
66
|
+
def session_driver
|
67
|
+
@session_driver ||= Virtuozzo::SOAP::Drivers::SessionDriver(@endpoint)
|
68
|
+
end
|
69
|
+
|
70
|
+
def environment_driver
|
71
|
+
@environment_driver ||= Virtuozzo::SOAP::Drivers::EnvironmentDriver(@endpoint)
|
72
|
+
end
|
73
|
+
|
74
|
+
def template_driver
|
75
|
+
@template_driver ||= Virtuozzo::SOAP::Drivers::TemplateDriver(@endpoint)
|
76
|
+
end
|
77
|
+
|
78
|
+
def relocator_driver
|
79
|
+
@relocator_driver ||= Virtuozzo::SOAP::Drivers::RelocatorDriver(@endpoint)
|
80
|
+
end
|
81
|
+
|
82
|
+
def device_driver
|
83
|
+
@device_driver ||= Virtuozzo::SOAP::Drivers::DeviceDriver(@endpoint)
|
84
|
+
end
|
85
|
+
|
86
|
+
def network_driver
|
87
|
+
@network_driver ||= Virtuozzo::SOAP::Drivers::NetworkDriver(@endpoint)
|
88
|
+
end
|
89
|
+
|
90
|
+
def process_info_driver
|
91
|
+
@process_info_driver ||= Virtuozzo::SOAP::Drivers::ProcessInfoDriver(@endpoint)
|
92
|
+
end
|
93
|
+
|
94
|
+
def process_driver
|
95
|
+
@process_driver ||= Virtuozzo::SOAP::Drivers::ProcessDriver(@endpoint)
|
96
|
+
end
|
97
|
+
|
98
|
+
def up2date_driver
|
99
|
+
@up2date_driver ||= Virtuozzo::SOAP::Drivers::Up2dateDriver(@endpoint)
|
100
|
+
end
|
101
|
+
|
102
|
+
def support_driver
|
103
|
+
@support_driver ||= Virtuozzo::SOAP::Drivers::SupportDriver(@endpoint)
|
104
|
+
end
|
105
|
+
|
106
|
+
private
|
107
|
+
|
108
|
+
def setup_ssl_protection
|
109
|
+
if @endpoint =~ /^https/
|
110
|
+
session_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
111
|
+
environment_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
112
|
+
template_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
113
|
+
relocator_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
114
|
+
device_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
115
|
+
network_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
116
|
+
process_info_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
117
|
+
process_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
118
|
+
up2date_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
119
|
+
support_driver.options['protocol.http.ssl_config.verify_mode'] = nil
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
def establish_session
|
124
|
+
login_opts = {
|
125
|
+
:name => Base64.encode64(@username),
|
126
|
+
:password => Base64.encode64(@password),
|
127
|
+
:realm => @realm
|
128
|
+
}
|
129
|
+
|
130
|
+
resp = session_driver.login(login_opts)
|
131
|
+
|
132
|
+
@session_id = resp.session_id
|
133
|
+
end
|
134
|
+
|
135
|
+
def setup_header_handler
|
136
|
+
session_driver.headerhandler << HeaderHandler.new(@session_id, 'sessionm')
|
137
|
+
environment_driver.headerhandler << HeaderHandler.new(@session_id, 'vzaenvm')
|
138
|
+
template_driver.headerhandler << HeaderHandler.new(@session_id, 'vzapackagem')
|
139
|
+
relocator_driver.headerhandler << HeaderHandler.new(@session_id, 'vzaprelocator')
|
140
|
+
device_driver.headerhandler << HeaderHandler.new(@session_id, 'vzadevm')
|
141
|
+
network_driver.headerhandler << HeaderHandler.new(@session_id, 'vzanetworkm')
|
142
|
+
process_info_driver.headerhandler << HeaderHandler.new(@session_id, 'vzaproc_info')
|
143
|
+
process_driver.headerhandler << HeaderHandler.new(@session_id, 'vzaprocessm')
|
144
|
+
up2date_driver.headerhandler << HeaderHandler.new(@session_id, 'vzaup2date')
|
145
|
+
support_driver.headerhandler << HeaderHandler.new(@session_id, 'vzasupport')
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
data/lib/virtuozzo.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# = virtuozzo
|
2
|
+
#
|
3
|
+
# +virtuozzo+ is intended to provide an interface to the Parallels Virtuozzo
|
4
|
+
# Agent XML & SOAP API via the Ruby programming language.
|
5
|
+
#
|
6
|
+
require 'base64'
|
7
|
+
require 'rubygems'
|
8
|
+
|
9
|
+
require 'soap4r'
|
10
|
+
|
11
|
+
__DIR__ = File.dirname(__FILE__)
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift __DIR__ unless
|
14
|
+
$LOAD_PATH.include?(__DIR__) ||
|
15
|
+
$LOAD_PATH.include?(File.expand_path(__DIR__))
|
16
|
+
|
17
|
+
require 'virtuozzo/constants'
|
18
|
+
require 'virtuozzo/soap'
|
data/script/console
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# File: script/console
|
3
|
+
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
+
|
5
|
+
libs = " -r irb/completion"
|
6
|
+
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
+
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
+
libs << " -r #{File.dirname(__FILE__) + '/../lib/virtuozzo.rb'}"
|
9
|
+
puts "Loading Virtuozzo gem"
|
10
|
+
exec "#{irb} #{libs} --simple-prompt"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'yaml'
|
3
|
+
|
4
|
+
require 'rubygems/specification'
|
5
|
+
data = File.read("virtuozzo.gemspec")
|
6
|
+
spec = nil
|
7
|
+
|
8
|
+
if data !~ %r{!ruby/object:Gem::Specification}
|
9
|
+
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
|
10
|
+
else
|
11
|
+
spec = YAML.load(data)
|
12
|
+
end
|
13
|
+
|
14
|
+
puts spec
|
15
|
+
puts "OK"
|
data/virtuozzo.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{virtuozzo}
|
5
|
+
s.version = "0.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["James Thompson"]
|
9
|
+
s.date = %q{2008-11-12}
|
10
|
+
s.description = %q{Ruby library for Parallels Virtuozzo Agent's API}
|
11
|
+
s.email = %q{james@plainprograms.com}
|
12
|
+
s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device/mapping_registry.rb", "lib/virtuozzo/soap/drivers/device/types.rb", "lib/virtuozzo/soap/drivers/device_driver.rb", "lib/virtuozzo/soap/drivers/environment/mapping_registry.rb", "lib/virtuozzo/soap/drivers/environment/types.rb", "lib/virtuozzo/soap/drivers/environment_driver.rb", "lib/virtuozzo/soap/drivers/network/mapping_registry.rb", "lib/virtuozzo/soap/drivers/network/types.rb", "lib/virtuozzo/soap/drivers/network_driver.rb", "lib/virtuozzo/soap/drivers/process/mapping_registry.rb", "lib/virtuozzo/soap/drivers/process/types.rb", "lib/virtuozzo/soap/drivers/process_driver.rb", "lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb", "lib/virtuozzo/soap/drivers/process_info/types.rb", "lib/virtuozzo/soap/drivers/process_info_driver.rb", "lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb", "lib/virtuozzo/soap/drivers/relocator/types.rb", "lib/virtuozzo/soap/drivers/relocator_driver.rb", "lib/virtuozzo/soap/drivers/session/mapping_registry.rb", "lib/virtuozzo/soap/drivers/session/types.rb", "lib/virtuozzo/soap/drivers/session_driver.rb", "lib/virtuozzo/soap/drivers/support/mapping_registry.rb", "lib/virtuozzo/soap/drivers/support/types.rb", "lib/virtuozzo/soap/drivers/support_driver.rb", "lib/virtuozzo/soap/drivers/template/mapping_registry.rb", "lib/virtuozzo/soap/drivers/template/types.rb", "lib/virtuozzo/soap/drivers/template_driver.rb", "lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb", "lib/virtuozzo/soap/drivers/up2date/types.rb", "lib/virtuozzo/soap/drivers/up2date_driver.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "README.rdoc"]
|
13
|
+
s.files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device/mapping_registry.rb", "lib/virtuozzo/soap/drivers/device/types.rb", "lib/virtuozzo/soap/drivers/device_driver.rb", "lib/virtuozzo/soap/drivers/environment/mapping_registry.rb", "lib/virtuozzo/soap/drivers/environment/types.rb", "lib/virtuozzo/soap/drivers/environment_driver.rb", "lib/virtuozzo/soap/drivers/network/mapping_registry.rb", "lib/virtuozzo/soap/drivers/network/types.rb", "lib/virtuozzo/soap/drivers/network_driver.rb", "lib/virtuozzo/soap/drivers/process/mapping_registry.rb", "lib/virtuozzo/soap/drivers/process/types.rb", "lib/virtuozzo/soap/drivers/process_driver.rb", "lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb", "lib/virtuozzo/soap/drivers/process_info/types.rb", "lib/virtuozzo/soap/drivers/process_info_driver.rb", "lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb", "lib/virtuozzo/soap/drivers/relocator/types.rb", "lib/virtuozzo/soap/drivers/relocator_driver.rb", "lib/virtuozzo/soap/drivers/session/mapping_registry.rb", "lib/virtuozzo/soap/drivers/session/types.rb", "lib/virtuozzo/soap/drivers/session_driver.rb", "lib/virtuozzo/soap/drivers/support/mapping_registry.rb", "lib/virtuozzo/soap/drivers/support/types.rb", "lib/virtuozzo/soap/drivers/support_driver.rb", "lib/virtuozzo/soap/drivers/template/mapping_registry.rb", "lib/virtuozzo/soap/drivers/template/types.rb", "lib/virtuozzo/soap/drivers/template_driver.rb", "lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb", "lib/virtuozzo/soap/drivers/up2date/types.rb", "lib/virtuozzo/soap/drivers/up2date_driver.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "Manifest", "Rakefile", "README.rdoc", "script/console", "script/github-gem-test", "virtuozzo.gemspec"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://github.com/plainprograms/virtuozzo}
|
16
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Virtuozzo", "--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{virtuozzo}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{Ruby library for Parallels Virtuozzo Agent's API}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 2
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_runtime_dependency(%q<soap4r>, [">= 1.5.8"])
|
28
|
+
else
|
29
|
+
s.add_dependency(%q<soap4r>, [">= 1.5.8"])
|
30
|
+
end
|
31
|
+
else
|
32
|
+
s.add_dependency(%q<soap4r>, [">= 1.5.8"])
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: plainprograms-virtuozzo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Thompson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-11-12 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: soap4r
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.5.8
|
23
|
+
version:
|
24
|
+
description: Ruby library for Parallels Virtuozzo Agent's API
|
25
|
+
email: james@plainprograms.com
|
26
|
+
executables: []
|
27
|
+
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files:
|
31
|
+
- CHANGELOG.rdoc
|
32
|
+
- lib/virtuozzo/constants.rb
|
33
|
+
- lib/virtuozzo/soap/drivers/device/mapping_registry.rb
|
34
|
+
- lib/virtuozzo/soap/drivers/device/types.rb
|
35
|
+
- lib/virtuozzo/soap/drivers/device_driver.rb
|
36
|
+
- lib/virtuozzo/soap/drivers/environment/mapping_registry.rb
|
37
|
+
- lib/virtuozzo/soap/drivers/environment/types.rb
|
38
|
+
- lib/virtuozzo/soap/drivers/environment_driver.rb
|
39
|
+
- lib/virtuozzo/soap/drivers/network/mapping_registry.rb
|
40
|
+
- lib/virtuozzo/soap/drivers/network/types.rb
|
41
|
+
- lib/virtuozzo/soap/drivers/network_driver.rb
|
42
|
+
- lib/virtuozzo/soap/drivers/process/mapping_registry.rb
|
43
|
+
- lib/virtuozzo/soap/drivers/process/types.rb
|
44
|
+
- lib/virtuozzo/soap/drivers/process_driver.rb
|
45
|
+
- lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb
|
46
|
+
- lib/virtuozzo/soap/drivers/process_info/types.rb
|
47
|
+
- lib/virtuozzo/soap/drivers/process_info_driver.rb
|
48
|
+
- lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb
|
49
|
+
- lib/virtuozzo/soap/drivers/relocator/types.rb
|
50
|
+
- lib/virtuozzo/soap/drivers/relocator_driver.rb
|
51
|
+
- lib/virtuozzo/soap/drivers/session/mapping_registry.rb
|
52
|
+
- lib/virtuozzo/soap/drivers/session/types.rb
|
53
|
+
- lib/virtuozzo/soap/drivers/session_driver.rb
|
54
|
+
- lib/virtuozzo/soap/drivers/support/mapping_registry.rb
|
55
|
+
- lib/virtuozzo/soap/drivers/support/types.rb
|
56
|
+
- lib/virtuozzo/soap/drivers/support_driver.rb
|
57
|
+
- lib/virtuozzo/soap/drivers/template/mapping_registry.rb
|
58
|
+
- lib/virtuozzo/soap/drivers/template/types.rb
|
59
|
+
- lib/virtuozzo/soap/drivers/template_driver.rb
|
60
|
+
- lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb
|
61
|
+
- lib/virtuozzo/soap/drivers/up2date/types.rb
|
62
|
+
- lib/virtuozzo/soap/drivers/up2date_driver.rb
|
63
|
+
- lib/virtuozzo/soap.rb
|
64
|
+
- lib/virtuozzo.rb
|
65
|
+
- README.rdoc
|
66
|
+
files:
|
67
|
+
- CHANGELOG.rdoc
|
68
|
+
- lib/virtuozzo/constants.rb
|
69
|
+
- lib/virtuozzo/soap/drivers/device/mapping_registry.rb
|
70
|
+
- lib/virtuozzo/soap/drivers/device/types.rb
|
71
|
+
- lib/virtuozzo/soap/drivers/device_driver.rb
|
72
|
+
- lib/virtuozzo/soap/drivers/environment/mapping_registry.rb
|
73
|
+
- lib/virtuozzo/soap/drivers/environment/types.rb
|
74
|
+
- lib/virtuozzo/soap/drivers/environment_driver.rb
|
75
|
+
- lib/virtuozzo/soap/drivers/network/mapping_registry.rb
|
76
|
+
- lib/virtuozzo/soap/drivers/network/types.rb
|
77
|
+
- lib/virtuozzo/soap/drivers/network_driver.rb
|
78
|
+
- lib/virtuozzo/soap/drivers/process/mapping_registry.rb
|
79
|
+
- lib/virtuozzo/soap/drivers/process/types.rb
|
80
|
+
- lib/virtuozzo/soap/drivers/process_driver.rb
|
81
|
+
- lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb
|
82
|
+
- lib/virtuozzo/soap/drivers/process_info/types.rb
|
83
|
+
- lib/virtuozzo/soap/drivers/process_info_driver.rb
|
84
|
+
- lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb
|
85
|
+
- lib/virtuozzo/soap/drivers/relocator/types.rb
|
86
|
+
- lib/virtuozzo/soap/drivers/relocator_driver.rb
|
87
|
+
- lib/virtuozzo/soap/drivers/session/mapping_registry.rb
|
88
|
+
- lib/virtuozzo/soap/drivers/session/types.rb
|
89
|
+
- lib/virtuozzo/soap/drivers/session_driver.rb
|
90
|
+
- lib/virtuozzo/soap/drivers/support/mapping_registry.rb
|
91
|
+
- lib/virtuozzo/soap/drivers/support/types.rb
|
92
|
+
- lib/virtuozzo/soap/drivers/support_driver.rb
|
93
|
+
- lib/virtuozzo/soap/drivers/template/mapping_registry.rb
|
94
|
+
- lib/virtuozzo/soap/drivers/template/types.rb
|
95
|
+
- lib/virtuozzo/soap/drivers/template_driver.rb
|
96
|
+
- lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb
|
97
|
+
- lib/virtuozzo/soap/drivers/up2date/types.rb
|
98
|
+
- lib/virtuozzo/soap/drivers/up2date_driver.rb
|
99
|
+
- lib/virtuozzo/soap.rb
|
100
|
+
- lib/virtuozzo.rb
|
101
|
+
- Manifest
|
102
|
+
- Rakefile
|
103
|
+
- README.rdoc
|
104
|
+
- script/console
|
105
|
+
- script/github-gem-test
|
106
|
+
- virtuozzo.gemspec
|
107
|
+
has_rdoc: true
|
108
|
+
homepage: http://github.com/plainprograms/virtuozzo
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options:
|
111
|
+
- --line-numbers
|
112
|
+
- --inline-source
|
113
|
+
- --title
|
114
|
+
- Virtuozzo
|
115
|
+
- --main
|
116
|
+
- README.rdoc
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
version:
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: "1.2"
|
130
|
+
version:
|
131
|
+
requirements: []
|
132
|
+
|
133
|
+
rubyforge_project: virtuozzo
|
134
|
+
rubygems_version: 1.2.0
|
135
|
+
signing_key:
|
136
|
+
specification_version: 2
|
137
|
+
summary: Ruby library for Parallels Virtuozzo Agent's API
|
138
|
+
test_files: []
|
139
|
+
|