Ejemplo n.º 1
0
    def __write_file_with_separator_conversion(self, contents):
        contents = serialize_json(
            self.__convert_separators(parse_json(contents)))

        fp = open(self.__config_file, 'w')
        fp.write(contents)
        fp.close()
Ejemplo n.º 2
0
    def __write_config_fragment_file_with_separator_conversion(self, file_path, contents):
        contents = serialize_json(self.__convert_separators(parse_json(contents)))

        full_path = os.path.join(self.__config_fragments_dir, file_path)
        fp = open(full_path, "w")
        fp.write(contents)
        fp.close()
Ejemplo n.º 3
0
    def __write_config_fragment_file_with_separator_conversion(self, file_path, contents):
        contents = serialize_json(self.__convert_separators(parse_json(contents)))

        full_path = os.path.join(self.__config_fragments_dir, file_path)
        fp = open(full_path, 'w')
        fp.write(contents)
        fp.close()
Ejemplo n.º 4
0
    def __write_file_with_separator_conversion(self, contents):
        contents = serialize_json(self.__convert_separators(parse_json(contents)))

        fp = open(self.__config_file, "w")
        fp.write(contents)
        fp.close()