CLI¶
-
rundeck_resources.cli.argument_parse()[source]¶ Method to extract the arguments from the command line.
Return type: ArgumentParserReturns: The argument parser.
-
rundeck_resources.cli.export_resources(interfaces, resources)[source]¶ Method to export the resources using the output interfaces.
Parameters: - interfaces (
list) – The list of initialized output interfaces. - resources (
dict) – The resources provided by the input interfaces.
Return type: None
- interfaces (
-
rundeck_resources.cli.import_resources(interfaces)[source]¶ Method to get all resources from the input interfaces.
Parameters: interfaces ( list) – The list of initialized input interfaces.Return type: dictReturns: The resources returned by the input interfaces.
-
rundeck_resources.cli.initialize_export_interfaces(config, plugins)[source]¶ Method to initialize the interfaces with the configuration.
Parameters: - config (
dict) – The configuration file content. - plugins (
dict) – The list of loaded plugins.
Return type: listReturns: The list of loaded plugins initialized.
- config (
-
rundeck_resources.cli.initialize_import_interfaces(config, plugins, cache)[source]¶ Method to initialize the interfaces with the configuration.
Parameters: - config (
dict) – The configuration file content. - plugins (
dict) – The list of loaded plugins. - cache (
Cache) – The cache system instance.
Return type: listReturns: The list of loaded plugins initialized.
- config (
-
rundeck_resources.cli.load_exporters(config)[source]¶ Method to load the Exporters plugins configured in the configuration file.
Parameters: config – The configuration file content. Returns: The Exporters plugins, loaded.