def METHOD_NAME(self, recipes_dir, file_data, repo_recipe):
    fname = os.path.join("recipes", repo_recipe)
    full_fname = os.path.join(recipes_dir, fname)
    with open(full_fname, "w") as f:
        f.write(file_data)
    subprocess.check_output(["git", "add", fname], cwd=recipes_dir)
    subprocess.check_output(["git", "commit", "-m", "Added %s" % repo_recipe], cwd=recipes_dir)
    return fname