12 lines
199 B
12 lines
199 B
6 years ago
|
class ShixunSecretRepository < ApplicationRecord
|
||
|
# repo_name: 仓库名
|
||
|
# secret_dir_name: 在tpm仓库的那个目录下
|
||
|
|
||
|
belongs_to :shixun
|
||
|
|
||
|
def repo_path
|
||
|
"#{repo_name}.git"
|
||
|
end
|
||
|
|
||
|
end
|