plainprograms-virtuozzo 0.5.2 → 0.5.3
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.
- data/CHANGELOG.rdoc +4 -0
 - data/README.rdoc +18 -10
 - data/Rakefile +5 -2
 - data/lib/virtuozzo/constants.rb +1 -1
 - data/lib/virtuozzo/soap/header_handler.rb +16 -16
 - data/lib/virtuozzo/soap.rb +33 -33
 - data/lib/virtuozzo.rb +0 -5
 - data/tasks/general.rake +4 -0
 - data/tasks/yard.rake +26 -3
 - data/virtuozzo.gemspec +4 -4
 - metadata +4 -2
 
    
        data/CHANGELOG.rdoc
    CHANGED
    
    
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -1,11 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            =  
     | 
| 
       2 
     | 
    
         
            -
                by James Thompson
         
     | 
| 
       3 
     | 
    
         
            -
                http://github.com/plainprograms/virtuozzo
         
     | 
| 
      
 1 
     | 
    
         
            +
            = virtuozzo
         
     | 
| 
       4 
2 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            The virtuozzo gem is designed to support working with Parallels Virtuozzo 
         
     | 
| 
      
 4 
     | 
    
         
            +
            Agent's XML and SOAP API from Ruby.
         
     | 
| 
       6 
5 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
      
 6 
     | 
    
         
            +
            * API Documentation: http://virtuozzo.rubyforge.org/virtuozzo/
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Wiki: http://github.com/plainprograms/virtuozzo/wikis
         
     | 
| 
       9 
8 
     | 
    
         | 
| 
       10 
9 
     | 
    
         
             
            == REQUIREMENTS
         
     | 
| 
       11 
10 
     | 
    
         | 
| 
         @@ -13,14 +12,23 @@ XML and SOAP API from Ruby. 
     | 
|
| 
       13 
12 
     | 
    
         | 
| 
       14 
13 
     | 
    
         
             
            == INSTALL
         
     | 
| 
       15 
14 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
      
 15 
     | 
    
         
            +
            To get the latest stable public release you can simply install the virtuozzo
         
     | 
| 
      
 16 
     | 
    
         
            +
            gem as you would any other:
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              $ sudo gem install virtuozzo
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            Development gems are released on Github and can be installed by adding
         
     | 
| 
      
 21 
     | 
    
         
            +
            Github's gem server to your sources and then installing the latest development
         
     | 
| 
      
 22 
     | 
    
         
            +
            release gem.
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              $ sudo gem sources -a http://gems.github.com/
         
     | 
| 
      
 25 
     | 
    
         
            +
              $ sudo gem install plainprograms-virtuozzo
         
     | 
| 
       18 
26 
     | 
    
         | 
| 
       19 
27 
     | 
    
         
             
            == SOURCE
         
     | 
| 
       20 
28 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
            The  
     | 
| 
      
 29 
     | 
    
         
            +
            The virtuozzo git repo is available on Github, which can be browsed at:
         
     | 
| 
       22 
30 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
              http://github.com/plainprograms/virtuozzo
         
     | 
| 
      
 31 
     | 
    
         
            +
              http://github.com/plainprograms/virtuozzo/tree/
         
     | 
| 
       24 
32 
     | 
    
         | 
| 
       25 
33 
     | 
    
         
             
            and cloned from:
         
     | 
| 
       26 
34 
     | 
    
         | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -2,12 +2,15 @@ require 'rubygems' 
     | 
|
| 
       2 
2 
     | 
    
         
             
            require 'echoe'
         
     | 
| 
       3 
3 
     | 
    
         
             
            require 'spec/rake/spectask'
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            PROJECT = "virtuozzo"
         
     | 
| 
      
 6 
     | 
    
         
            +
            RUBYFORGE_PROJECT = "virtuozzo"
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            Echoe.new(PROJECT, '0.5.3') do |p|
         
     | 
| 
       6 
9 
     | 
    
         
             
              p.description               = "Ruby library for Parallels Virtuozzo Agent's API"
         
     | 
| 
       7 
10 
     | 
    
         
             
              p.url                       = "http://github.com/plainprograms/virtuozzo"
         
     | 
| 
       8 
11 
     | 
    
         
             
              p.author                    = "James Thompson"
         
     | 
| 
       9 
12 
     | 
    
         
             
              p.email                     = "james@plainprograms.com"
         
     | 
| 
       10 
     | 
    
         
            -
              p.project                   =  
     | 
| 
      
 13 
     | 
    
         
            +
              p.project                   = RUBYFORGE_PROJECT
         
     | 
| 
       11 
14 
     | 
    
         
             
              p.ignore_pattern            = ["tmp/*, script/*"]
         
     | 
| 
       12 
15 
     | 
    
         
             
              p.development_dependencies  = ["echoe"]
         
     | 
| 
       13 
16 
     | 
    
         
             
              p.runtime_dependencies      = ["soap4r >=1.5.8"]
         
     | 
    
        data/lib/virtuozzo/constants.rb
    CHANGED
    
    
| 
         @@ -3,10 +3,10 @@ require 'soap/header/simplehandler' 
     | 
|
| 
       3 
3 
     | 
    
         
             
            module Virtuozzo
         
     | 
| 
       4 
4 
     | 
    
         
             
              module SOAP
         
     | 
| 
       5 
5 
     | 
    
         
             
                ##
         
     | 
| 
       6 
     | 
    
         
            -
                # The  
     | 
| 
       7 
     | 
    
         
            -
                #  
     | 
| 
      
 6 
     | 
    
         
            +
                # The HeaderHandler class takes care of properly formatting the
         
     | 
| 
      
 7 
     | 
    
         
            +
                # packet_header element inside a SOAP envelope header are. This
         
     | 
| 
       8 
8 
     | 
    
         
             
                # implementation will properly marshal all attributes and elements
         
     | 
| 
       9 
     | 
    
         
            -
                # for the  
     | 
| 
      
 9 
     | 
    
         
            +
                # for the packet_header element according to the Virtuozzo SOAP
         
     | 
| 
       10 
10 
     | 
    
         
             
                # API specification.
         
     | 
| 
       11 
11 
     | 
    
         
             
                #
         
     | 
| 
       12 
12 
     | 
    
         
             
                class HeaderHandler < ::SOAP::Header::SimpleHandler
         
     | 
| 
         @@ -14,33 +14,33 @@ module Virtuozzo 
     | 
|
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                  ##
         
     | 
| 
       16 
16 
     | 
    
         
             
                  # Accepts a number of options that will inform the values assigned to the
         
     | 
| 
       17 
     | 
    
         
            -
                  # attributes and elements of the  
     | 
| 
      
 17 
     | 
    
         
            +
                  # attributes and elements of the packet_header element.
         
     | 
| 
       18 
18 
     | 
    
         
             
                  #
         
     | 
| 
       19 
     | 
    
         
            -
                  # ==  
     | 
| 
      
 19 
     | 
    
         
            +
                  # == opts options
         
     | 
| 
       20 
20 
     | 
    
         
             
                  #
         
     | 
| 
       21 
21 
     | 
    
         
             
                  # === Attributes
         
     | 
| 
       22 
22 
     | 
    
         
             
                  #
         
     | 
| 
       23 
     | 
    
         
            -
                  # *  
     | 
| 
      
 23 
     | 
    
         
            +
                  # * :id represents a unique identifier for a given message. The
         
     | 
| 
       24 
24 
     | 
    
         
             
                  #   response will include this token for identification.
         
     | 
| 
       25 
     | 
    
         
            -
                  # *  
     | 
| 
      
 25 
     | 
    
         
            +
                  # * :priority tells the agent to process the message with the given
         
     | 
| 
       26 
26 
     | 
    
         
             
                  #   priority.
         
     | 
| 
       27 
     | 
    
         
            -
                  # *  
     | 
| 
       28 
     | 
    
         
            -
                  # *  
     | 
| 
       29 
     | 
    
         
            -
                  # *  
     | 
| 
       30 
     | 
    
         
            -
                  # *  
     | 
| 
      
 27 
     | 
    
         
            +
                  # * :time represents the time and date the message was sent.
         
     | 
| 
      
 28 
     | 
    
         
            +
                  # * :progress tells the agent to enable progress monitoring.
         
     | 
| 
      
 29 
     | 
    
         
            +
                  # * :log tells the agent log the activities related to this message.
         
     | 
| 
      
 30 
     | 
    
         
            +
                  # * :timeout tells the agent to stop processing the message after the
         
     | 
| 
       31 
31 
     | 
    
         
             
                  #   supplied interval of time.
         
     | 
| 
       32 
32 
     | 
    
         
             
                  #
         
     | 
| 
       33 
33 
     | 
    
         
             
                  # === Elements
         
     | 
| 
       34 
34 
     | 
    
         
             
                  #
         
     | 
| 
       35 
     | 
    
         
            -
                  # *  
     | 
| 
      
 35 
     | 
    
         
            +
                  # * :session tells the agent which authenticated session this message
         
     | 
| 
       36 
36 
     | 
    
         
             
                  #   should be processed in the context of.
         
     | 
| 
       37 
     | 
    
         
            -
                  # *  
     | 
| 
       38 
     | 
    
         
            -
                  # *  
     | 
| 
      
 37 
     | 
    
         
            +
                  # * :target tells the agent which operator should handle this message.
         
     | 
| 
      
 38 
     | 
    
         
            +
                  # * :cookie represents a unique token that will be retruned with the
         
     | 
| 
       39 
39 
     | 
    
         
             
                  #   response message as a means of identification.
         
     | 
| 
       40 
     | 
    
         
            -
                  # *  
     | 
| 
      
 40 
     | 
    
         
            +
                  # * :dst tells the agent to forward this message to another destination
         
     | 
| 
       41 
41 
     | 
    
         
             
                  #   for final processing.
         
     | 
| 
       42 
42 
     | 
    
         
             
                  #
         
     | 
| 
       43 
     | 
    
         
            -
                  # @param [Hash] opts values for  
     | 
| 
      
 43 
     | 
    
         
            +
                  # @param [Hash] opts values for packet_header attributes and elements.
         
     | 
| 
       44 
44 
     | 
    
         
             
                  #
         
     | 
| 
       45 
45 
     | 
    
         
             
                  def initialize(opts = {})
         
     | 
| 
       46 
46 
     | 
    
         
             
                    @elem_options = {
         
     | 
    
        data/lib/virtuozzo/soap.rb
    CHANGED
    
    | 
         @@ -11,8 +11,8 @@ require 'virtuozzo/soap/drivers/support' 
     | 
|
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            require 'virtuozzo/soap/header_handler'
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
            module Virtuozzo 
     | 
| 
       15 
     | 
    
         
            -
              module SOAP 
     | 
| 
      
 14 
     | 
    
         
            +
            module Virtuozzo
         
     | 
| 
      
 15 
     | 
    
         
            +
              module SOAP
         
     | 
| 
       16 
16 
     | 
    
         
             
                ##
         
     | 
| 
       17 
17 
     | 
    
         
             
                # The Connection class provides for establishing of a SOAP session with a
         
     | 
| 
       18 
18 
     | 
    
         
             
                # Virtuozzo Agent using either an SSL-secured or unsecure HTTP connection.
         
     | 
| 
         @@ -25,18 +25,18 @@ module Virtuozzo  # :nodoc: 
     | 
|
| 
       25 
25 
     | 
    
         
             
                  # Establish a new session with the specified host using the supplied
         
     | 
| 
       26 
26 
     | 
    
         
             
                  # credentials and options.
         
     | 
| 
       27 
27 
     | 
    
         
             
                  #
         
     | 
| 
       28 
     | 
    
         
            -
                  # The  
     | 
| 
       29 
     | 
    
         
            -
                  # 'device' to be used for wiredumps, defaults to  
     | 
| 
       30 
     | 
    
         
            -
                  #  
     | 
| 
      
 28 
     | 
    
         
            +
                  # The opts hash may define :debug to be either true, false or the
         
     | 
| 
      
 29 
     | 
    
         
            +
                  # 'device' to be used for wiredumps, defaults to false. If set to true
         
     | 
| 
      
 30 
     | 
    
         
            +
                  # STDERR will be used for wiredumps.
         
     | 
| 
       31 
31 
     | 
    
         
             
                  #
         
     | 
| 
       32 
     | 
    
         
            -
                  # The  
     | 
| 
       33 
     | 
    
         
            -
                  #  
     | 
| 
       34 
     | 
    
         
            -
                  #  
     | 
| 
       35 
     | 
    
         
            -
                  #  
     | 
| 
      
 32 
     | 
    
         
            +
                  # The opts hash may define :verify_ssl to be either true or false in
         
     | 
| 
      
 33 
     | 
    
         
            +
                  # regards to whether SSL certificates should be verified for the various
         
     | 
| 
      
 34 
     | 
    
         
            +
                  # SOAP::RPC::Driver connections. The default is +false+, causing no SSL
         
     | 
| 
      
 35 
     | 
    
         
            +
                  # certificate verification.
         
     | 
| 
       36 
36 
     | 
    
         
             
                  #
         
     | 
| 
       37 
     | 
    
         
            -
                  # The  
     | 
| 
       38 
     | 
    
         
            -
                  #  
     | 
| 
       39 
     | 
    
         
            -
                  #  
     | 
| 
      
 37 
     | 
    
         
            +
                  # The opts hash may define a :realm for authentication. The default is
         
     | 
| 
      
 38 
     | 
    
         
            +
                  # the Virtuozzo system realm represented by the Virtuozzo::DEFAULT_REALM
         
     | 
| 
      
 39 
     | 
    
         
            +
                  # constant.
         
     | 
| 
       40 
40 
     | 
    
         
             
                  #
         
     | 
| 
       41 
41 
     | 
    
         
             
                  # @param [String] host the host to connect to
         
     | 
| 
       42 
42 
     | 
    
         
             
                  # @param [String] username the user to authenticate as
         
     | 
| 
         @@ -64,81 +64,81 @@ module Virtuozzo  # :nodoc: 
     | 
|
| 
       64 
64 
     | 
    
         
             
                  end
         
     | 
| 
       65 
65 
     | 
    
         | 
| 
       66 
66 
     | 
    
         
             
                  ##
         
     | 
| 
       67 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 67 
     | 
    
         
            +
                  # Handle for the sessionm interface of the Virtuozzo API.
         
     | 
| 
       68 
68 
     | 
    
         
             
                  #
         
     | 
| 
       69 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 69 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] sessionm SOAP::RPC::Driver instance.
         
     | 
| 
       70 
70 
     | 
    
         
             
                  def session
         
     | 
| 
       71 
71 
     | 
    
         
             
                    @session ||= Virtuozzo::SOAP::Drivers::Session.new(@endpoint)
         
     | 
| 
       72 
72 
     | 
    
         
             
                  end
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         
             
                  ##
         
     | 
| 
       75 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 75 
     | 
    
         
            +
                  # Handle for the vzaenvm interface of the Virtuozzo API.
         
     | 
| 
       76 
76 
     | 
    
         
             
                  #
         
     | 
| 
       77 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 77 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzaenvmm SOAP::RPC::Driver instance.
         
     | 
| 
       78 
78 
     | 
    
         
             
                  def environment
         
     | 
| 
       79 
79 
     | 
    
         
             
                    @environment ||= Virtuozzo::SOAP::Drivers::Environment.new(@endpoint)
         
     | 
| 
       80 
80 
     | 
    
         
             
                  end
         
     | 
| 
       81 
81 
     | 
    
         | 
| 
       82 
82 
     | 
    
         
             
                  ##
         
     | 
| 
       83 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 83 
     | 
    
         
            +
                  # Handle for the vzapackagem interface of the Virtuozzo API.
         
     | 
| 
       84 
84 
     | 
    
         
             
                  #
         
     | 
| 
       85 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 85 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzapackagem SOAP::RPC::Driver instance.
         
     | 
| 
       86 
86 
     | 
    
         
             
                  def template
         
     | 
| 
       87 
87 
     | 
    
         
             
                    @template ||= Virtuozzo::SOAP::Drivers::Template.new(@endpoint)
         
     | 
| 
       88 
88 
     | 
    
         
             
                  end
         
     | 
| 
       89 
89 
     | 
    
         | 
| 
       90 
90 
     | 
    
         
             
                  ##
         
     | 
| 
       91 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 91 
     | 
    
         
            +
                  # Handle for the vzarelocator interface of the Virtuozzo API.
         
     | 
| 
       92 
92 
     | 
    
         
             
                  #
         
     | 
| 
       93 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 93 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzarelocator SOAP::RPC::Driver instance.
         
     | 
| 
       94 
94 
     | 
    
         
             
                  def relocator
         
     | 
| 
       95 
95 
     | 
    
         
             
                    @relocator ||= Virtuozzo::SOAP::Drivers::Relocator.new(@endpoint)
         
     | 
| 
       96 
96 
     | 
    
         
             
                  end
         
     | 
| 
       97 
97 
     | 
    
         | 
| 
       98 
98 
     | 
    
         
             
                  ##
         
     | 
| 
       99 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 99 
     | 
    
         
            +
                  # Handle for the vzadevm interface of the Virtuozzo API.
         
     | 
| 
       100 
100 
     | 
    
         
             
                  #
         
     | 
| 
       101 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 101 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzadevm SOAP::RPC::Driver instance.
         
     | 
| 
       102 
102 
     | 
    
         
             
                  def device
         
     | 
| 
       103 
103 
     | 
    
         
             
                    @device ||= Virtuozzo::SOAP::Drivers::Device.new(@endpoint)
         
     | 
| 
       104 
104 
     | 
    
         
             
                  end
         
     | 
| 
       105 
105 
     | 
    
         | 
| 
       106 
106 
     | 
    
         
             
                  ##
         
     | 
| 
       107 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 107 
     | 
    
         
            +
                  # Handle for the vzanetworkm interface of the Virtuozzo API.
         
     | 
| 
       108 
108 
     | 
    
         
             
                  #
         
     | 
| 
       109 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 109 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzanetworkm SOAP::RPC::Driver instance.
         
     | 
| 
       110 
110 
     | 
    
         
             
                  def network
         
     | 
| 
       111 
111 
     | 
    
         
             
                    @network ||= Virtuozzo::SOAP::Drivers::Network.new(@endpoint)
         
     | 
| 
       112 
112 
     | 
    
         
             
                  end
         
     | 
| 
       113 
113 
     | 
    
         | 
| 
       114 
114 
     | 
    
         
             
                  ##
         
     | 
| 
       115 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 115 
     | 
    
         
            +
                  # Handle for the vzaproc_info interface of the Virtuozzo API.
         
     | 
| 
       116 
116 
     | 
    
         
             
                  #
         
     | 
| 
       117 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 117 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzaproc_info SOAP::RPC::Driver instance.
         
     | 
| 
       118 
118 
     | 
    
         
             
                  def process_info
         
     | 
| 
       119 
119 
     | 
    
         
             
                    @process_info ||= Virtuozzo::SOAP::Drivers::ProcessInfo.new(@endpoint)
         
     | 
| 
       120 
120 
     | 
    
         
             
                  end
         
     | 
| 
       121 
121 
     | 
    
         | 
| 
       122 
122 
     | 
    
         
             
                  ##
         
     | 
| 
       123 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 123 
     | 
    
         
            +
                  # Handle for the vzaprocessmm interface of the Virtuozzo API.
         
     | 
| 
       124 
124 
     | 
    
         
             
                  #
         
     | 
| 
       125 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 125 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzaprocessm SOAP::RPC::Driver instance.
         
     | 
| 
       126 
126 
     | 
    
         
             
                  def process
         
     | 
| 
       127 
127 
     | 
    
         
             
                    @process ||= Virtuozzo::SOAP::Drivers::Process.new(@endpoint)
         
     | 
| 
       128 
128 
     | 
    
         
             
                  end
         
     | 
| 
       129 
129 
     | 
    
         | 
| 
       130 
130 
     | 
    
         
             
                  ##
         
     | 
| 
       131 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 131 
     | 
    
         
            +
                  # Handle for the vzaup2date interface of the Virtuozzo API.
         
     | 
| 
       132 
132 
     | 
    
         
             
                  #
         
     | 
| 
       133 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 133 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzaup2date SOAP::RPC::Driver instance.
         
     | 
| 
       134 
134 
     | 
    
         
             
                  def up2date
         
     | 
| 
       135 
135 
     | 
    
         
             
                    @up2date ||= Virtuozzo::SOAP::Drivers::Up2date.new(@endpoint)
         
     | 
| 
       136 
136 
     | 
    
         
             
                  end
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
138 
     | 
    
         
             
                  ##
         
     | 
| 
       139 
     | 
    
         
            -
                  # Handle for the  
     | 
| 
      
 139 
     | 
    
         
            +
                  # Handle for the vzasupport interface of the Virtuozzo API.
         
     | 
| 
       140 
140 
     | 
    
         
             
                  #
         
     | 
| 
       141 
     | 
    
         
            -
                  # @return [SOAP::RPC::Driver]  
     | 
| 
      
 141 
     | 
    
         
            +
                  # @return [SOAP::RPC::Driver] vzasupport SOAP::RPC::Driver instance.
         
     | 
| 
       142 
142 
     | 
    
         
             
                  def support
         
     | 
| 
       143 
143 
     | 
    
         
             
                    @support ||= Virtuozzo::SOAP::Drivers::Support.new(@endpoint)
         
     | 
| 
       144 
144 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -200,7 +200,7 @@ module Virtuozzo  # :nodoc: 
     | 
|
| 
       200 
200 
     | 
    
         | 
| 
       201 
201 
     | 
    
         
             
                  ##
         
     | 
| 
       202 
202 
     | 
    
         
             
                  # Sets up handling of the SOAP envelope header for all outbound messages
         
     | 
| 
       203 
     | 
    
         
            -
                  # given the established  
     | 
| 
      
 203 
     | 
    
         
            +
                  # given the established session_id and sets the appropriate target for
         
     | 
| 
       204 
204 
     | 
    
         
             
                  # each driver in turn.
         
     | 
| 
       205 
205 
     | 
    
         
             
                  #
         
     | 
| 
       206 
206 
     | 
    
         
             
                  def setup_header_handler
         
     | 
    
        data/lib/virtuozzo.rb
    CHANGED
    
    
    
        data/tasks/general.rake
    ADDED
    
    
    
        data/tasks/yard.rake
    CHANGED
    
    | 
         @@ -2,11 +2,34 @@ require 'rubygems' 
     | 
|
| 
       2 
2 
     | 
    
         
             
            require 'yard'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            namespace :yard do
         
     | 
| 
       5 
     | 
    
         
            -
              YARD::Rake::YardocTask.new(: 
     | 
| 
      
 5 
     | 
    
         
            +
              YARD::Rake::YardocTask.new(:docs) do |t|
         
     | 
| 
      
 6 
     | 
    
         
            +
                puts "Generating YARD Documentation"
         
     | 
| 
       6 
7 
     | 
    
         
             
                t.options = [
         
     | 
| 
       7 
8 
     | 
    
         
             
                    '--readme', 'README.rdoc',
         
     | 
| 
       8 
     | 
    
         
            -
                    '--use-cache', '.yardoc',
         
     | 
| 
       9 
     | 
    
         
            -
                    '--db', '.yardoc'
         
     | 
| 
       10 
9 
     | 
    
         
             
                  ]
         
     | 
| 
       11 
10 
     | 
    
         
             
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
              
         
     | 
| 
      
 12 
     | 
    
         
            +
              desc "Publish YARD documentation."
         
     | 
| 
      
 13 
     | 
    
         
            +
              task :publish => [:docs] do
         
     | 
| 
      
 14 
     | 
    
         
            +
                puts "Publishing YARD Documentation"
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                local_dir = 'doc'
         
     | 
| 
      
 17 
     | 
    
         
            +
                remote_dir_name = "#{RUBYFORGE_PROJECT}/#{PROJECT}"
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
         
     | 
| 
      
 20 
     | 
    
         
            +
                pub = Rake::SshDirPublisher.new "#{config["username"]}@rubyforge.org", "/var/www/gforge-projects/#{remote_dir_name}", local_dir
         
     | 
| 
      
 21 
     | 
    
         
            +
                  
         
     | 
| 
      
 22 
     | 
    
         
            +
                def pub.upload
         
     | 
| 
      
 23 
     | 
    
         
            +
                  begin
         
     | 
| 
      
 24 
     | 
    
         
            +
                    super
         
     | 
| 
      
 25 
     | 
    
         
            +
                  rescue
         
     | 
| 
      
 26 
     | 
    
         
            +
                    # project directory probably doesn't exist, transfer as a whole
         
     | 
| 
      
 27 
     | 
    
         
            +
                    cmd = "scp -qr #{local_dir} #{host}:#{remote_dir}"
         
     | 
| 
      
 28 
     | 
    
         
            +
                    puts "Uploading: #{cmd}"
         
     | 
| 
      
 29 
     | 
    
         
            +
                    system(cmd)
         
     | 
| 
      
 30 
     | 
    
         
            +
                  end
         
     | 
| 
      
 31 
     | 
    
         
            +
                end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                pub.upload
         
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
       12 
35 
     | 
    
         
             
            end
         
     | 
    
        data/virtuozzo.gemspec
    CHANGED
    
    | 
         @@ -2,15 +2,15 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       4 
4 
     | 
    
         
             
              s.name = %q{virtuozzo}
         
     | 
| 
       5 
     | 
    
         
            -
              s.version = "0.5. 
     | 
| 
      
 5 
     | 
    
         
            +
              s.version = "0.5.3"
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
              s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
         
     | 
| 
       8 
8 
     | 
    
         
             
              s.authors = ["James Thompson"]
         
     | 
| 
       9 
     | 
    
         
            -
              s.date = %q{2008-11- 
     | 
| 
      
 9 
     | 
    
         
            +
              s.date = %q{2008-11-15}
         
     | 
| 
       10 
10 
     | 
    
         
             
              s.description = %q{Ruby library for Parallels Virtuozzo Agent's API}
         
     | 
| 
       11 
11 
     | 
    
         
             
              s.email = %q{james@plainprograms.com}
         
     | 
| 
       12 
     | 
    
         
            -
              s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device.rb", "lib/virtuozzo/soap/drivers/environment.rb", "lib/virtuozzo/soap/drivers/network.rb", "lib/virtuozzo/soap/drivers/process.rb", "lib/virtuozzo/soap/drivers/process_info.rb", "lib/virtuozzo/soap/drivers/relocator.rb", "lib/virtuozzo/soap/drivers/session.rb", "lib/virtuozzo/soap/drivers/support.rb", "lib/virtuozzo/soap/drivers/template.rb", "lib/virtuozzo/soap/drivers/up2date.rb", "lib/virtuozzo/soap/header_handler.rb", "lib/virtuozzo/soap/mapping_registries/device.rb", "lib/virtuozzo/soap/mapping_registries/environment.rb", "lib/virtuozzo/soap/mapping_registries/network.rb", "lib/virtuozzo/soap/mapping_registries/process.rb", "lib/virtuozzo/soap/mapping_registries/process_info.rb", "lib/virtuozzo/soap/mapping_registries/relocator.rb", "lib/virtuozzo/soap/mapping_registries/session.rb", "lib/virtuozzo/soap/mapping_registries/support.rb", "lib/virtuozzo/soap/mapping_registries/template.rb", "lib/virtuozzo/soap/mapping_registries/up2date.rb", "lib/virtuozzo/soap/types/device.rb", "lib/virtuozzo/soap/types/environment.rb", "lib/virtuozzo/soap/types/network.rb", "lib/virtuozzo/soap/types/process.rb", "lib/virtuozzo/soap/types/process_info.rb", "lib/virtuozzo/soap/types/relocator.rb", "lib/virtuozzo/soap/types/session.rb", "lib/virtuozzo/soap/types/support.rb", "lib/virtuozzo/soap/types/template.rb", "lib/virtuozzo/soap/types/up2date.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "README.rdoc", "tasks/yard.rake"]
         
     | 
| 
       13 
     | 
    
         
            -
              s.files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device.rb", "lib/virtuozzo/soap/drivers/environment.rb", "lib/virtuozzo/soap/drivers/network.rb", "lib/virtuozzo/soap/drivers/process.rb", "lib/virtuozzo/soap/drivers/process_info.rb", "lib/virtuozzo/soap/drivers/relocator.rb", "lib/virtuozzo/soap/drivers/session.rb", "lib/virtuozzo/soap/drivers/support.rb", "lib/virtuozzo/soap/drivers/template.rb", "lib/virtuozzo/soap/drivers/up2date.rb", "lib/virtuozzo/soap/header_handler.rb", "lib/virtuozzo/soap/mapping_registries/device.rb", "lib/virtuozzo/soap/mapping_registries/environment.rb", "lib/virtuozzo/soap/mapping_registries/network.rb", "lib/virtuozzo/soap/mapping_registries/process.rb", "lib/virtuozzo/soap/mapping_registries/process_info.rb", "lib/virtuozzo/soap/mapping_registries/relocator.rb", "lib/virtuozzo/soap/mapping_registries/session.rb", "lib/virtuozzo/soap/mapping_registries/support.rb", "lib/virtuozzo/soap/mapping_registries/template.rb", "lib/virtuozzo/soap/mapping_registries/up2date.rb", "lib/virtuozzo/soap/types/device.rb", "lib/virtuozzo/soap/types/environment.rb", "lib/virtuozzo/soap/types/network.rb", "lib/virtuozzo/soap/types/process.rb", "lib/virtuozzo/soap/types/process_info.rb", "lib/virtuozzo/soap/types/relocator.rb", "lib/virtuozzo/soap/types/session.rb", "lib/virtuozzo/soap/types/support.rb", "lib/virtuozzo/soap/types/template.rb", "lib/virtuozzo/soap/types/up2date.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "Manifest", "Rakefile", "README.rdoc", "script/console", "script/github-gem-test", "tasks/yard.rake", "virtuozzo.gemspec"]
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device.rb", "lib/virtuozzo/soap/drivers/environment.rb", "lib/virtuozzo/soap/drivers/network.rb", "lib/virtuozzo/soap/drivers/process.rb", "lib/virtuozzo/soap/drivers/process_info.rb", "lib/virtuozzo/soap/drivers/relocator.rb", "lib/virtuozzo/soap/drivers/session.rb", "lib/virtuozzo/soap/drivers/support.rb", "lib/virtuozzo/soap/drivers/template.rb", "lib/virtuozzo/soap/drivers/up2date.rb", "lib/virtuozzo/soap/header_handler.rb", "lib/virtuozzo/soap/mapping_registries/device.rb", "lib/virtuozzo/soap/mapping_registries/environment.rb", "lib/virtuozzo/soap/mapping_registries/network.rb", "lib/virtuozzo/soap/mapping_registries/process.rb", "lib/virtuozzo/soap/mapping_registries/process_info.rb", "lib/virtuozzo/soap/mapping_registries/relocator.rb", "lib/virtuozzo/soap/mapping_registries/session.rb", "lib/virtuozzo/soap/mapping_registries/support.rb", "lib/virtuozzo/soap/mapping_registries/template.rb", "lib/virtuozzo/soap/mapping_registries/up2date.rb", "lib/virtuozzo/soap/types/device.rb", "lib/virtuozzo/soap/types/environment.rb", "lib/virtuozzo/soap/types/network.rb", "lib/virtuozzo/soap/types/process.rb", "lib/virtuozzo/soap/types/process_info.rb", "lib/virtuozzo/soap/types/relocator.rb", "lib/virtuozzo/soap/types/session.rb", "lib/virtuozzo/soap/types/support.rb", "lib/virtuozzo/soap/types/template.rb", "lib/virtuozzo/soap/types/up2date.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "README.rdoc", "tasks/general.rake", "tasks/yard.rake"]
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.files = ["CHANGELOG.rdoc", "lib/virtuozzo/constants.rb", "lib/virtuozzo/soap/drivers/device.rb", "lib/virtuozzo/soap/drivers/environment.rb", "lib/virtuozzo/soap/drivers/network.rb", "lib/virtuozzo/soap/drivers/process.rb", "lib/virtuozzo/soap/drivers/process_info.rb", "lib/virtuozzo/soap/drivers/relocator.rb", "lib/virtuozzo/soap/drivers/session.rb", "lib/virtuozzo/soap/drivers/support.rb", "lib/virtuozzo/soap/drivers/template.rb", "lib/virtuozzo/soap/drivers/up2date.rb", "lib/virtuozzo/soap/header_handler.rb", "lib/virtuozzo/soap/mapping_registries/device.rb", "lib/virtuozzo/soap/mapping_registries/environment.rb", "lib/virtuozzo/soap/mapping_registries/network.rb", "lib/virtuozzo/soap/mapping_registries/process.rb", "lib/virtuozzo/soap/mapping_registries/process_info.rb", "lib/virtuozzo/soap/mapping_registries/relocator.rb", "lib/virtuozzo/soap/mapping_registries/session.rb", "lib/virtuozzo/soap/mapping_registries/support.rb", "lib/virtuozzo/soap/mapping_registries/template.rb", "lib/virtuozzo/soap/mapping_registries/up2date.rb", "lib/virtuozzo/soap/types/device.rb", "lib/virtuozzo/soap/types/environment.rb", "lib/virtuozzo/soap/types/network.rb", "lib/virtuozzo/soap/types/process.rb", "lib/virtuozzo/soap/types/process_info.rb", "lib/virtuozzo/soap/types/relocator.rb", "lib/virtuozzo/soap/types/session.rb", "lib/virtuozzo/soap/types/support.rb", "lib/virtuozzo/soap/types/template.rb", "lib/virtuozzo/soap/types/up2date.rb", "lib/virtuozzo/soap.rb", "lib/virtuozzo.rb", "Manifest", "Rakefile", "README.rdoc", "script/console", "script/github-gem-test", "tasks/general.rake", "tasks/yard.rake", "virtuozzo.gemspec"]
         
     | 
| 
       14 
14 
     | 
    
         
             
              s.has_rdoc = true
         
     | 
| 
       15 
15 
     | 
    
         
             
              s.homepage = %q{http://github.com/plainprograms/virtuozzo}
         
     | 
| 
       16 
16 
     | 
    
         
             
              s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Virtuozzo", "--main", "README.rdoc"]
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: plainprograms-virtuozzo
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.5. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.5.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - James Thompson
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2008-11- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2008-11-15 00:00:00 -08:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -73,6 +73,7 @@ extra_rdoc_files: 
     | 
|
| 
       73 
73 
     | 
    
         
             
            - lib/virtuozzo/soap.rb
         
     | 
| 
       74 
74 
     | 
    
         
             
            - lib/virtuozzo.rb
         
     | 
| 
       75 
75 
     | 
    
         
             
            - README.rdoc
         
     | 
| 
      
 76 
     | 
    
         
            +
            - tasks/general.rake
         
     | 
| 
       76 
77 
     | 
    
         
             
            - tasks/yard.rake
         
     | 
| 
       77 
78 
     | 
    
         
             
            files: 
         
     | 
| 
       78 
79 
     | 
    
         
             
            - CHANGELOG.rdoc
         
     | 
| 
         @@ -115,6 +116,7 @@ files: 
     | 
|
| 
       115 
116 
     | 
    
         
             
            - README.rdoc
         
     | 
| 
       116 
117 
     | 
    
         
             
            - script/console
         
     | 
| 
       117 
118 
     | 
    
         
             
            - script/github-gem-test
         
     | 
| 
      
 119 
     | 
    
         
            +
            - tasks/general.rake
         
     | 
| 
       118 
120 
     | 
    
         
             
            - tasks/yard.rake
         
     | 
| 
       119 
121 
     | 
    
         
             
            - virtuozzo.gemspec
         
     | 
| 
       120 
122 
     | 
    
         
             
            has_rdoc: true
         
     |