Package VMBuilder :: Package plugins :: Class Plugin
[frames] | no frames]

Class Plugin

source code

object --+
         |
        Plugin
Known Subclasses:

Nested Classes
  BooleanSetting
  IntSetting
  ListSetting
  Setting
  SettingGroup
  StringSetting
Instance Methods
 
__init__(self, context)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
call_hooks(self, *args, **kwargs) source code
 
get_setting(self, name) source code
 
get_setting_default(self, name) source code
 
get_setting_valid_options(self, name) source code
 
has_setting(self, name) source code
 
install_file(self, path, contents=None, source=None, mode=None) source code
 
install_from_template(self, path, tmplname, context=None, mode=None) source code
 
post_install(self)
This is called just after the distro is installed, before it gets copied to the fs images.
source code
 
preflight_check(self)
Override this method with checks for anything that might cause the VM creation to fail
source code
 
register_options(self) source code
 
run_in_target(self, *args, **kwargs) source code
 
set_defaults(self) source code
 
set_setting(self, name, value) source code
 
set_setting_default(self, name, value) source code
 
set_setting_fuzzy(self, name, value) source code
 
set_setting_valid_options(self, name, valid_options) source code
 
setting_group(self, name) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  priority = 10
Properties

Inherited from object: __class__

Method Details

__init__(self, context)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

preflight_check(self)

source code 

Override this method with checks for anything that might cause the VM creation to fail

raise an exception if you can see already that this won't work