|
|
@ -833,6 +833,7 @@ class ShixunsController < ApplicationController
|
|
|
|
# 设置私密版本库的在tpm中的目录
|
|
|
|
# 设置私密版本库的在tpm中的目录
|
|
|
|
def set_secret_dir
|
|
|
|
def set_secret_dir
|
|
|
|
raise("设置路径不能为空") if params[:secret_dir_path].blank?
|
|
|
|
raise("设置路径不能为空") if params[:secret_dir_path].blank?
|
|
|
|
|
|
|
|
raise("请先配置私密版本库") if @shixun.shixun_secret_repository.blank?
|
|
|
|
@shixun.shixun_secret_repository.update_attributes(:secret_dir_path => params[:secret_dir_path])
|
|
|
|
@shixun.shixun_secret_repository.update_attributes(:secret_dir_path => params[:secret_dir_path])
|
|
|
|
normal_status("设置成功")
|
|
|
|
normal_status("设置成功")
|
|
|
|
end
|
|
|
|
end
|
|
|
|