genvid.toolbox.AllInOneTool
Warning
This module has been deprecated. Although the code is still working for our oldest model, it is not expected to work with the new Bastion API. Please use the new genvid-bastion tool.
- class genvid.toolbox.AllInOneTool(**kwargs)
Bases:
RuntimeTool
Main tool for managing the all-in-one local environment for development.
Deprecated since version 1.7.0.
- NAME = 'all-in-one'
The name of the logger for this tool. Must be redefined in children.
- DESCRIPTION = 'Set up all-in-one local environment.'
A description of the tool, used in the help parser. Must be redefined in children.
- services
A
LocalServiceInstaller
used to manage the orchestration services
- GENVID_STATIC_BINDING
A mirror of
GENVID_STATIC_BINDING
for using static ports in a local configuration.
- GENVID_BASTION_INIT_FOLDER
A mirror of
GENVID_BASTION_INIT_FOLDER
used to initialize Consul key-value store before starting up the bastion-api.New in version 1.29.0.
- setup_jobs()
Initialize Consul KV Store from configuration files.
This method:
finds all
.hcl
and.json
files directly underGENVID_BASTION_INIT_FOLDER
in lexicographical order;loads them using
load_config_template()
;registers them in Consul before loading the next file.
Changed in version 1.20.0: Non-functional refactoring to clarify intent.
Changed in version 1.29.0: Load the configuration from an external file.
Changed in version 1.33.0: Remove the dependency on ConfigTool.
- add_allinone_commands()
Delegate to
add_runtime_commands()
.
- run_allinone_command(command, options)
Delegate to
run_runtime_command()
.
- class allinone.AllInOneTool
Implementation of
genvid.toolbox.AllInOneTool