Revision 4b298efd src/oca/ruby/OpenNebula/Host.rb

View differences:

src/oca/ruby/OpenNebula/Host.rb
52 52
        #######################################################################
53 53
        # XML-RPC Methods for the Host
54 54
        #######################################################################
55
        
56
        # Retrieves the information of the given Host.
55 57
        def info()
56 58
            super(HOST_METHODS[:info], 'HOST')
57 59
        end
58 60

  
61
        # Allocates a new Host in OpenNebula
62
        #
63
        # +hostname+ A string containing the name of the new Host.
64
        #
65
        # +im+ A string containing the name of the im_driver
66
        #
67
        # +vmm+ A string containing the name of the vmm_driver
68
        #
69
        # +tm+ A string containing the name of the tm_driver
59 70
        def allocate(hostname,im,vmm,tm)
60 71
            super(HOST_METHODS[:allocate],hostname,im,vmm,tm)
61 72
        end
62 73

  
74
        # Deletes the Host
63 75
        def delete()
64 76
            super(HOST_METHODS[:delete])
65 77
        end
66 78

  
79
        # Enables the Host
67 80
        def enable()
68 81
            set_enabled(true)
69 82
        end
70 83

  
84
        # Disables the Host
71 85
        def disable()
72 86
            set_enabled(false)
73 87
        end

Also available in: Unified diff