1 ##############################################################################
2 # Copyright (c) 2016 Tim Rozet (trozet@redhat.com) and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
14 if isinstance(var, bool):
17 return var.lower() in ("true", "yes")
20 def parse_yaml(yaml_file):
21 with open(yaml_file) as f:
22 parsed_dict = yaml.safe_load(f)
26 def write_str(bash_str, path=None):
28 with open(path, 'w') as file: