ssg.products module

class ssg.products.Product(filename)[source]

Bases: object

expand_by_acquired_data(property_dict)[source]
get(key, default=None)[source]
read_properties_from_directory(path)[source]
static transform_default_and_overrides_mappings_to_mapping(mappings)[source]
write(filename)[source]
ssg.products.get_all(ssg_root)[source]

Analyzes all products in the SSG root and sorts them into two categories: those which use linux_os and those which use their own directory. Returns a namedtuple of sets, (linux, other).

ssg.products.get_all_product_yamls(ssg_root)[source]
ssg.products.get_all_products_with_same_guide_directory(ssg_root, product_yaml)[source]
ssg.products.get_profile_files_from_root(env_yaml, product_yaml)[source]
ssg.products.get_profiles_directory(env_yaml)[source]
ssg.products.load_product_yaml(product_yaml_path)[source]

Reads a product data from disk and returns it. The returned product dictionary also contains derived useful information.

ssg.products.product_yaml_path(ssg_root, product)[source]