code: def process_rules(self, path: Path, system: System):
          
          self.context.update({
              'system': system,
          })
          document = FileSystem.load_yaml(path, required=True)
          for module, rules in document.items():
              click.secho('process: {0}'.format(module), fg='green')
              self._process_rules(rules, system)
docs: writes the templates read from the rules document