class ShixunSecretRepository < ApplicationRecord # repo_name: 仓库名 # secret_dir_name: 在tpm仓库的那个目录下 belongs_to :shixun def repo_path "#{repo_name}.git" end end