Package VMBuilder :: Package contrib :: Module cli :: Class CLI
[frames] | no frames]

Class CLI

source code

object --+
         |
        CLI
Known Subclasses:

Instance Methods
 
main(self) source code
 
fix_ownership(self, filename)
Change ownership of file to $SUDO_USER.
source code
 
add_settings_from_context(self, optparser, context) source code
 
versioninfo(self, option, opt, value, parser) source code
 
set_usage(self, optparser) source code
 
handle_args(self, optparser, args) source code
 
set_verbosity(self, option, opt_str, value, parser) source code
 
set_disk_layout(self, hypervisor) source code
 
do_disk(self, hypervisor, curdisk, size, disk_idx) source code

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

Class Variables
  arg = 'cli'
Properties

Inherited from object: __class__

Method Details

fix_ownership(self, filename)

source code 

Change ownership of file to $SUDO_USER.

Parameters:
  • path (string) - file or directory to give to $SUDO_USER