Package cubicweb :: Module cwctl
[hide private]
[frames] | no frames]

Module cwctl

source code

the cubicweb-ctl tool, based on logilab.common.clcommands to provide a pluggable commands system.
Classes [hide private]
  InstanceCommand
base class for command taking 0 to n instance id as arguments (0 meaning all registered instances)
  InstanceCommandFork
Same as InstanceCommand, but command is forked in a new environment for each argument
  ListCommand
List configurations, cubes and instances.
  CreateInstanceCommand
Create an instance from a cube. This is an unified command which can handle web / server / all-in-one installation according to available parts of the software library and of the desired cube.
  DeleteInstanceCommand
Delete an instance. Will remove instance's files and unregister it.
  StartInstanceCommand
Start the given instances. If no instance is given, start them all.
  StopInstanceCommand
Stop the given instances.
  RestartInstanceCommand
Restart the given instances.
  ReloadConfigurationCommand
Reload the given instances. This command is equivalent to a restart for now.
  StatusCommand
Display status information about the given instances.
  UpgradeInstanceCommand
Upgrade an instance after cubicweb and/or component(s) upgrade.
  ShellCommand
Run an interactive migration shell on an instance. This is a python shell with enhanced migration commands predefined in the namespace. An additional argument may be given corresponding to a file containing commands to execute in batch mode.
  RecompileInstanceCatalogsCommand
Recompile i18n catalogs for instances.
  ListInstancesCommand
list available instances, useful for bash completion.
  ListCubesCommand
list available componants, useful for bash completion.
  cmdcls
list available componants, useful for bash completion.
Functions [hide private]
 
wait_process_end(pid, maxtry=10, waittime=1)
wait for a process to actually die
source code
 
list_instances(regdir) source code
 
detect_available_modes(templdir) source code
 
init_cmdline_log_threshold(config, loglevel) source code
 
run(args)
command line tool
source code
Variables [hide private]
  CWCTL = {'db-restore': <class 'cubicweb.server.serverctl.DBRes...
Variables Details [hide private]

CWCTL

Value:
{'db-restore': <class 'cubicweb.server.serverctl.DBRestoreCommand'>, '\
db-check': <class 'cubicweb.server.serverctl.CheckRepositoryCommand'>,\
 'check-mapping': <class 'cubicweb.server.serverctl.CheckMappingComman\
d'>, 'upgrade': <class 'cubicweb.cwctl.UpgradeInstanceCommand'>, 'db-i\
nit': <class 'cubicweb.server.serverctl.InitInstanceCommand'>, 'db-cre\
ate': <class 'cubicweb.server.serverctl.CreateInstanceDBCommand'>, 'cr\
eate': <class 'cubicweb.cwctl.CreateInstanceCommand'>, 'start': <class\
 'cubicweb.cwctl.StartInstanceCommand'>, 'i18ninstance': <class 'cubic\
...