Module manage :: Class AlterChrootCommand
[hide private]
[frames] | no frames]

Class AlterChrootCommand

source code


Activates or deactivates a chroot

Instance Methods [hide private]
 
run(self, chroot_names, action)
Runs a command.
source code

Inherited from ChrootCommand: print_already_exists, print_doesnt_exist, print_invalid_format

Inherited from flask_script.commands.Command: __call__, __init__, add_option, create_parser, get_options

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

Class Variables [hide private]
  option_list = ChrootCommand.option_list+(Option("--action", "-...

Inherited from flask_script.commands.Command: help_args

Properties [hide private]

Inherited from flask_script.commands.Command: description

Inherited from object: __class__

Method Details [hide private]

run(self, chroot_names, action)

source code 

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

Overrides: flask_script.commands.Command.run
(inherited documentation)

Class Variable Details [hide private]

option_list

Value:
ChrootCommand.option_list+(Option("--action", "-a", dest= "action", he\
lp= "Action to take - currently activate or deactivate", choices= ["ac\
tivate", "deactivate"], required= True),)