Revision 28917152 src/mad/ruby/VirtualMachineDriver.rb

View differences:

src/mad/ruby/VirtualMachineDriver.rb
61 61

  
62 62
    HOST_ARG = 1
63 63

  
64
    # Register default actions for the protocol
65
    def initialize(concurrency=10, threaded=true, retries=0,
66
                directory='vmm', local_actions={})
67
        super(concurrency, threaded, retries, directory, local_actions)
64
    # Register default actions for the protocol.
65
    #
66
    # @param [String] directory path inside remotes path where the scripts
67
    #   reside
68
    # @param [Hash] options options for OpenNebula driver (check the available
69
    #   options in {OpenNebulaDriver#initialize})
70
    # @option options [Boolean] :threaded (true) enables or disables threads
71
    def initialize(directory, options={})
72
        @options={
73
            :threaded => true
74
        }.merge!(options)
75
        
76
        super(directory, @options)
68 77

  
69 78
        @hosts   = Array.new
70 79

  
......
201 210

  
202 211
    class TemplateDriver < VirtualMachineDriver
203 212
        def initialize
204
            super(15,true)
213
            super('vmm/dummy',
214
                :concurrency => 15,
215
                :threaded => true)
205 216
        end
206 217

  
207 218
        def deploy(id, host, remote_dfile, not_used)

Also available in: Unified diff