opennebula-oca 3.9.0.beta → 3.9.90.rc
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -0
- metadata +35 -108
- data/LICENSE +0 -202
- data/NOTICE +0 -48
- data/lib/opennebula/acl.rb +0 -259
- data/lib/opennebula/acl_pool.rb +0 -53
- data/lib/opennebula/client.rb +0 -102
- data/lib/opennebula/cluster.rb +0 -247
- data/lib/opennebula/cluster_pool.rb +0 -56
- data/lib/opennebula/datastore.rb +0 -169
- data/lib/opennebula/datastore_pool.rb +0 -53
- data/lib/opennebula/document.rb +0 -259
- data/lib/opennebula/document_json.rb +0 -129
- data/lib/opennebula/document_pool.rb +0 -97
- data/lib/opennebula/document_pool_json.rb +0 -58
- data/lib/opennebula/error.rb +0 -52
- data/lib/opennebula/group.rb +0 -161
- data/lib/opennebula/group_pool.rb +0 -54
- data/lib/opennebula/host.rb +0 -199
- data/lib/opennebula/host_pool.rb +0 -91
- data/lib/opennebula/image.rb +0 -293
- data/lib/opennebula/image_pool.rb +0 -74
- data/lib/opennebula/ldap_auth.rb +0 -99
- data/lib/opennebula/ldap_auth_spec.rb +0 -70
- data/lib/opennebula/pool.rb +0 -157
- data/lib/opennebula/pool_element.rb +0 -269
- data/lib/opennebula/server_cipher_auth.rb +0 -148
- data/lib/opennebula/server_x509_auth.rb +0 -104
- data/lib/opennebula/ssh_auth.rb +0 -139
- data/lib/opennebula/system.rb +0 -141
- data/lib/opennebula/template.rb +0 -201
- data/lib/opennebula/template_pool.rb +0 -74
- data/lib/opennebula/user.rb +0 -172
- data/lib/opennebula/user_pool.rb +0 -53
- data/lib/opennebula/virtual_machine.rb +0 -426
- data/lib/opennebula/virtual_machine_pool.rb +0 -318
- data/lib/opennebula/virtual_network.rb +0 -247
- data/lib/opennebula/virtual_network_pool.rb +0 -74
- data/lib/opennebula/x509_auth.rb +0 -241
- data/lib/opennebula/xml_element.rb +0 -427
- data/lib/opennebula/xml_pool.rb +0 -45
- data/lib/opennebula/xml_utils.rb +0 -34
- data/lib/opennebula.rb +0 -58
data/lib/opennebula/xml_pool.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
|
3
|
-
# #
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
|
-
# not use this file except in compliance with the License. You may obtain #
|
6
|
-
# a copy of the License at #
|
7
|
-
# #
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0 #
|
9
|
-
# #
|
10
|
-
# Unless required by applicable law or agreed to in writing, software #
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, #
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
13
|
-
# See the License for the specific language governing permissions and #
|
14
|
-
# limitations under the License. #
|
15
|
-
#--------------------------------------------------------------------------- #
|
16
|
-
|
17
|
-
require 'opennebula/xml_element'
|
18
|
-
|
19
|
-
module OpenNebula
|
20
|
-
# The XMLUtilsPool module provides an abstraction of the underlying
|
21
|
-
# XML parser engine. It provides XML-related methods for the Pools
|
22
|
-
class XMLPool < XMLElement
|
23
|
-
|
24
|
-
def initialize(xml=nil)
|
25
|
-
super(xml)
|
26
|
-
end
|
27
|
-
|
28
|
-
#Executes the given block for each element of the Pool
|
29
|
-
#block:: _Block_
|
30
|
-
def each_element(block)
|
31
|
-
if NOKOGIRI
|
32
|
-
@xml.xpath(
|
33
|
-
"#{@element_name}").each {|pelem|
|
34
|
-
block.call self.factory(pelem)
|
35
|
-
}
|
36
|
-
else
|
37
|
-
@xml.elements.each(
|
38
|
-
"#{@element_name}") {|pelem|
|
39
|
-
block.call self.factory(pelem)
|
40
|
-
}
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
data/lib/opennebula/xml_utils.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
|
3
|
-
# #
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
|
-
# not use this file except in compliance with the License. You may obtain #
|
6
|
-
# a copy of the License at #
|
7
|
-
# #
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0 #
|
9
|
-
# #
|
10
|
-
# Unless required by applicable law or agreed to in writing, software #
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, #
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
13
|
-
# See the License for the specific language governing permissions and #
|
14
|
-
# limitations under the License. #
|
15
|
-
#--------------------------------------------------------------------------- #
|
16
|
-
|
17
|
-
require 'opennebula/xml_pool'
|
18
|
-
|
19
|
-
module OpenNebula
|
20
|
-
|
21
|
-
begin
|
22
|
-
require 'nokogiri'
|
23
|
-
NOKOGIRI=true
|
24
|
-
rescue LoadError
|
25
|
-
NOKOGIRI=false
|
26
|
-
end
|
27
|
-
|
28
|
-
begin
|
29
|
-
require 'rexml/formatters/pretty'
|
30
|
-
REXML_FORMATTERS=true
|
31
|
-
rescue LoadError
|
32
|
-
REXML_FORMATTERS=false
|
33
|
-
end
|
34
|
-
end
|
data/lib/opennebula.rb
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
|
3
|
-
# #
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
|
-
# not use this file except in compliance with the License. You may obtain #
|
6
|
-
# a copy of the License at #
|
7
|
-
# #
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0 #
|
9
|
-
# #
|
10
|
-
# Unless required by applicable law or agreed to in writing, software #
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, #
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
13
|
-
# See the License for the specific language governing permissions and #
|
14
|
-
# limitations under the License. #
|
15
|
-
#--------------------------------------------------------------------------- #
|
16
|
-
|
17
|
-
|
18
|
-
begin # require 'rubygems'
|
19
|
-
require 'rubygems'
|
20
|
-
rescue Exception
|
21
|
-
end
|
22
|
-
|
23
|
-
require 'digest/sha1'
|
24
|
-
require 'rexml/document'
|
25
|
-
require 'pp'
|
26
|
-
|
27
|
-
require 'opennebula/xml_utils'
|
28
|
-
require 'opennebula/client'
|
29
|
-
require 'opennebula/error'
|
30
|
-
require 'opennebula/virtual_machine'
|
31
|
-
require 'opennebula/virtual_machine_pool'
|
32
|
-
require 'opennebula/virtual_network'
|
33
|
-
require 'opennebula/virtual_network_pool'
|
34
|
-
require 'opennebula/image'
|
35
|
-
require 'opennebula/image_pool'
|
36
|
-
require 'opennebula/user'
|
37
|
-
require 'opennebula/user_pool'
|
38
|
-
require 'opennebula/host'
|
39
|
-
require 'opennebula/host_pool'
|
40
|
-
require 'opennebula/template'
|
41
|
-
require 'opennebula/template_pool'
|
42
|
-
require 'opennebula/group'
|
43
|
-
require 'opennebula/group_pool'
|
44
|
-
require 'opennebula/acl'
|
45
|
-
require 'opennebula/acl_pool'
|
46
|
-
require 'opennebula/datastore'
|
47
|
-
require 'opennebula/datastore_pool'
|
48
|
-
require 'opennebula/cluster'
|
49
|
-
require 'opennebula/cluster_pool'
|
50
|
-
require 'opennebula/document'
|
51
|
-
require 'opennebula/document_pool'
|
52
|
-
require 'opennebula/system'
|
53
|
-
|
54
|
-
module OpenNebula
|
55
|
-
|
56
|
-
# OpenNebula version
|
57
|
-
VERSION = '3.9.0'
|
58
|
-
end
|