FIX update devops process

This commit is contained in:
Jasder
2020-08-06 14:26:19 +08:00
parent 0b9a69ec56
commit 69ea60dfd5
14 changed files with 276 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
json.step @user.devops_step
json.cloud_account do
if @cloud_account && !@user.devops_uninit?
json.account @cloud_account.account
json.ip @cloud_account.drone_ip
json.secret @cloud_account.visible_secret
json.authenticate_url "#{@cloud_account.drone_url}/login" if @user.devops_unverified?
json.get_drone_token_url "#{@cloud_account.drone_url}/account" if @user.devops_verified?
else
json.nil!
end
end

View File

@@ -12,5 +12,4 @@ json.user_phone_binded @user.phone.present?
# json.email @user.mail
json.profile_completed @user.profile_completed?
json.professional_certification @user.professional_certification
json.devops_step @user.devops_step