CLI

rundeck_resources.cli.argument_parse()[source]

Method to extract the arguments from the command line.

Return type:ArgumentParser
Returns: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

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:dict
Returns: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:

list

Returns:

The list of loaded plugins initialized.

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:

list

Returns:

The list of loaded plugins initialized.

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.
rundeck_resources.cli.load_importers(config)[source]

Method to load the Importers plugins configured in the configuration file.

Parameters:config – The configuration file content.
Returns:The Importers plugins, loaded.
rundeck_resources.cli.main()[source]

Main method.

Return type:None
rundeck_resources.cli.verbosity(verbose)[source]

Method to set the verbosity.

Parameters:verbose (int) – The verbosity set by user.
Returns:The verbosity level.