ssg.build_sce module

class ssg.build_sce.SCEBuilder(env_yaml, product_yaml, template_builder, output_dir)[source]

Bases: object

build()[source]

Walks the content repository and builds all SCE checks (and metadata entry) into the output directory.

ssg.build_sce.collect_sce_checks(datastreamtree)[source]
ssg.build_sce.load_sce_and_metadata(file_path, local_env_yaml)[source]

For the given SCE audit file (file_path) under the specified environment (local_env_yaml), parse the file while expanding Jinja macros and read any metadata headers the file contains. Note that the last keyword of a specified type is the recorded one.

Parameters:
  • file_path (str) – The path to the SCE audit file

  • local_env_yaml (dict) – The local environment dict

Returns (audit_content, metadata).

ssg.build_sce.load_sce_and_metadata_parsed(raw_content)[source]
ssg.build_sce.write_sce_file(sce_content, output_dir, filename)[source]