plainprograms-virtuozzo 0.1.0

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.
Files changed (40) hide show
  1. data/CHANGELOG.rdoc +54 -0
  2. data/README.rdoc +52 -0
  3. data/Rakefile +15 -0
  4. data/lib/virtuozzo/constants.rb +10 -0
  5. data/lib/virtuozzo/soap/drivers/device/mapping_registry.rb +3653 -0
  6. data/lib/virtuozzo/soap/drivers/device/types.rb +3144 -0
  7. data/lib/virtuozzo/soap/drivers/device_driver.rb +141 -0
  8. data/lib/virtuozzo/soap/drivers/environment/mapping_registry.rb +4461 -0
  9. data/lib/virtuozzo/soap/drivers/environment/types.rb +3743 -0
  10. data/lib/virtuozzo/soap/drivers/environment_driver.rb +300 -0
  11. data/lib/virtuozzo/soap/drivers/network/mapping_registry.rb +3116 -0
  12. data/lib/virtuozzo/soap/drivers/network/types.rb +2401 -0
  13. data/lib/virtuozzo/soap/drivers/network_driver.rb +101 -0
  14. data/lib/virtuozzo/soap/drivers/process/mapping_registry.rb +3317 -0
  15. data/lib/virtuozzo/soap/drivers/process/types.rb +2711 -0
  16. data/lib/virtuozzo/soap/drivers/process_driver.rb +69 -0
  17. data/lib/virtuozzo/soap/drivers/process_info/mapping_registry.rb +2985 -0
  18. data/lib/virtuozzo/soap/drivers/process_info/types.rb +2328 -0
  19. data/lib/virtuozzo/soap/drivers/process_info_driver.rb +61 -0
  20. data/lib/virtuozzo/soap/drivers/relocator/mapping_registry.rb +3656 -0
  21. data/lib/virtuozzo/soap/drivers/relocator/types.rb +2916 -0
  22. data/lib/virtuozzo/soap/drivers/relocator_driver.rb +101 -0
  23. data/lib/virtuozzo/soap/drivers/session/mapping_registry.rb +3039 -0
  24. data/lib/virtuozzo/soap/drivers/session/types.rb +2453 -0
  25. data/lib/virtuozzo/soap/drivers/session_driver.rb +149 -0
  26. data/lib/virtuozzo/soap/drivers/support/mapping_registry.rb +3232 -0
  27. data/lib/virtuozzo/soap/drivers/support/types.rb +2708 -0
  28. data/lib/virtuozzo/soap/drivers/support_driver.rb +109 -0
  29. data/lib/virtuozzo/soap/drivers/template/mapping_registry.rb +3752 -0
  30. data/lib/virtuozzo/soap/drivers/template/types.rb +3079 -0
  31. data/lib/virtuozzo/soap/drivers/template_driver.rb +117 -0
  32. data/lib/virtuozzo/soap/drivers/up2date/mapping_registry.rb +3312 -0
  33. data/lib/virtuozzo/soap/drivers/up2date/types.rb +2670 -0
  34. data/lib/virtuozzo/soap/drivers/up2date_driver.rb +92 -0
  35. data/lib/virtuozzo/soap.rb +149 -0
  36. data/lib/virtuozzo.rb +18 -0
  37. data/script/console +10 -0
  38. data/script/github-gem-test +15 -0
  39. data/virtuozzo.gemspec +34 -0
  40. metadata +139 -0
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,54 @@
1
+ == 0.1.0 "Big Boy"
2
+
3
+ * After finding a bug in the way Virtuozzo handles parsing of SOAP headers
4
+ it makes SOAP the more viable option for quick implementation. Conducting
5
+ major refactoring to implement SOAP API.
6
+ * And, holy smoke, we renamed the project. The new project name is
7
+ +virtuozzo+. The reasons is because it clarifies what this is an
8
+ implementation of and for.
9
+ * Supports VZLsessionm interface via SessionDriver.
10
+ * Supports VZAenvnm interface via EnvironmentDriver.
11
+ * Supports VZApackagem interface via TemplateDriver.
12
+ * Supports VZArelocator interface via RelocatorDriver.
13
+ * Supports VZAdevm interface via DeviceDriver.
14
+ * Supports VZAnetworkm interface via NetworkDriver.
15
+ * Supports VZAproc_info interface via ProcessInfoDriver.
16
+ * Supports VZAup2date interface via Up2dateDriver.
17
+ * Supports VZAsupport interface via SupportDriver.
18
+
19
+ == 0.0.4 "System Overload" 2008-11-06
20
+
21
+ * Implemented everything from the system target along with its necessary
22
+ complex types. Few things are documented as "No plans to implement" and
23
+ the system target stuff to handle subscribing and unsubscribing to alerts
24
+ is being put off.
25
+
26
+ == 0.0.3 "Bastard Grandson of Timmy" 2008-11-05
27
+
28
+ * Implemented ROXML for complex types and messages.
29
+ * Dropping the idea that this library should implement a client itself.
30
+ * Dropping method based interface for now, implementations will need to
31
+ explicitly craft their own messages.
32
+ * system/login call and response is implemented.
33
+ * vzaenvm/get_list call and response is implemented.
34
+ * Complex type env_statusType implemented as EnvStatus.
35
+ * Complex type tokenType implemented as Token.
36
+
37
+ == 0.0.2 "Son of Timmy" 2008-10-29
38
+
39
+ * Stripped all the SOAP interface code out. (Even handcrafting the packets was
40
+ horribly broken. Besides, SOAP sucks anyways.)
41
+ * Refactored all the calls into methods instead of classes. This should make
42
+ things a little simpler. All the methods return instances of RequestMessage
43
+ so there shouldn't be much change for the actual socket client
44
+ implementation.
45
+
46
+ == 0.0.1 "Timmy" 2008-10-28
47
+
48
+ * Basic methods implemented for XML API interaction in
49
+ VZAgent::XML::Connection.
50
+ * Basic methods implemented for SOAP API interaction in
51
+ VZAgent::SOAP::Connection.
52
+ * Login message classes implemented for +system+ and +sessionm+ targets.
53
+ * Generic RequestMessage class implemented.
54
+ * Basic constants and errors defined.
data/README.rdoc ADDED
@@ -0,0 +1,52 @@
1
+ = +virtuozzo+
2
+ by James Thompson
3
+ http://github.com/plainprograms/virtuozzo
4
+
5
+ == DESCRIPTION
6
+
7
+ +virtuozzo+ is designed to support working with Parallels Virtuozzo Agent's
8
+ XML and SOAP API from Ruby.
9
+
10
+ == REQUIREMENTS
11
+
12
+ * soap4r
13
+
14
+ == INSTALL
15
+
16
+ $ gem sources -a http://gems.github.com/
17
+ $ gem install plainprograms-virtuozzo
18
+
19
+ == SOURCE
20
+
21
+ The +virtuozzo+ git repo is available on GitHub, which can be browsed at:
22
+
23
+ http://github.com/plainprograms/virtuozzo
24
+
25
+ and cloned from:
26
+
27
+ git://github.com/plainprograms/virtuozzo.git
28
+
29
+ == LICENSE
30
+
31
+ (The MIT License)
32
+
33
+ Copyright (c) 2008 James Thompson <james@plainprograms.com>
34
+
35
+ Permission is hereby granted, free of charge, to any person obtaining
36
+ a copy of this software and associated documentation files (the
37
+ 'Software'), to deal in the Software without restriction, including
38
+ without limitation the rights to use, copy, modify, merge, publish,
39
+ distribute, sublicense, and/or sell copies of the Software, and to
40
+ permit persons to whom the Software is furnished to do so, subject to
41
+ the following conditions:
42
+
43
+ The above copyright notice and this permission notice shall be
44
+ included in all copies or substantial portions of the Software.
45
+
46
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
47
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
49
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
50
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
51
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
52
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ require 'echoe'
3
+ require 'spec/rake/spectask'
4
+
5
+ Echoe.new('virtuozzo', '0.1.0') do |p|
6
+ p.description = "Ruby library for Parallels Virtuozzo Agent's API"
7
+ p.url = "http://github.com/plainprograms/virtuozzo"
8
+ p.author = "James Thompson"
9
+ p.email = "james@plainprograms.com"
10
+ p.ignore_pattern = ["tmp/*, script/*"]
11
+ p.development_dependencies = []
12
+ p.runtime_dependencies = ["soap4r >=1.5.8"]
13
+ end
14
+
15
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
@@ -0,0 +1,10 @@
1
+ module Virtuozzo # :nodoc:
2
+ # Virtuozzo Agent's protocol version
3
+ PROTOCOL_VERSION = '4.0.0'
4
+
5
+ # Virtuozzo Agent's default system realm
6
+ DEFAULT_REALM = '00000000-0000-0000-0000-000000000000'
7
+
8
+ # UUID Generator
9
+ UUID_GENERATOR = UUID.new
10
+ end