Home | Trees | Indices | Help |
---|
|
1 # 2 # Uncomplicated VM Builder 3 # Copyright (C) 2007-2008 Canonical Ltd. 4 # 5 # See AUTHORS for list of contributors 6 # 7 # This program is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 3 of the License, or 10 # (at your option) any later version. 11 # 12 # This program is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # 20 import os 21 import VMBuilder 22 2628 retval = [] 29 for plugin_dir in __path__: 30 for p in os.listdir(plugin_dir): 31 path = '%s/%s' % (plugin_dir, p) 32 if os.path.isdir(path) and os.path.isfile('%s/__init__.py' % path): 33 retval.append("VMBuilder.plugins.%s" % p) 34 return retval3540 43 467148 """ 49 Override this method with checks for anything that might cause the VM creation to fail 50 51 raise an exception if you can see already that this won't work 52 """ 53 pass5456 """ 57 This is called just after the distro is installed, before it gets copied to the fs images. 58 """ 59 pass6062 """ 63 Perform deployment of the VM. 64 65 If True is returned, no further deployment will be done. 66 """ 67 return False6870 return self.vm.install_file(path, VMBuilder.util.render_template(self.__module__.split('.')[2], self.vm, tmplname, context), mode=mode)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Nov 13 06:43:37 2008 | http://epydoc.sourceforge.net |