def METHOD_NAME(self, ctx):
    workspace_dir = ctx["workspace"]
    prod_dirs = [_ for _ in os.listdir(workspace_dir) if _.startswith("prod_")]
    last = -1
    for dir in prod_dirs:
        stage = int(dir.split("_")[-1])
        if stage > last:
            last = stage
    ctx["last_prod_stage"] = last
    template_file_full_path = os.path.join(self.get_resources_dir(ctx), self.template_file)
    file_path = pathlib.Path(__file__).parent.absolute()
    shutil.copyfile(os.path.join(file_path, self.template_file), template_file_full_path)
    ctx["template_file"] = self.template_file