Common

rundeck_resources.common.check_file(path)[source]

Method to normalize the path of a file and check if the file exists and is a file.

Parameters:path (str) – The file path to check.
Return type:str
Returns:The absolute path of a file.
Raises:FileNotFoundError
rundeck_resources.common.get_section(plugin, title)[source]

Construct the configuration section

Parameters:
  • plugin (str) – The plugin name.
  • title (str) – The title seperated by : in the configuration file.
Return type:

str

Returns:

The configuration section to pull from the configuration file.

rundeck_resources.common.normalize_path(path)[source]

Method to expand and return an absolute path from a normal path.

Parameters:path (str) – The path to normalize.
Return type:str
Returns:The absolute path.