diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-20 07:17:00 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-15 11:36:57 +0300 |
commit | 46eeaafc255f9cc037f2656fcace67085519bf29 (patch) | |
tree | 54c5d5056925e90d2e54d9192ffff6be95ef26f9 /app/helpers/auto_devops_helper.rb | |
parent | 416a5450e4d8598e87f96f9edc57983502b42397 (diff) |
Display help text below auto devops domain with nip.io domain name (#45561)
Diffstat (limited to 'app/helpers/auto_devops_helper.rb')
-rw-r--r-- | app/helpers/auto_devops_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/auto_devops_helper.rb b/app/helpers/auto_devops_helper.rb index 16451993e93..7b076728685 100644 --- a/app/helpers/auto_devops_helper.rb +++ b/app/helpers/auto_devops_helper.rb @@ -24,6 +24,15 @@ module AutoDevopsHelper end end + def cluster_ingress_ip(project) + project + .cluster_ingresses + .where("external_ip is not null") + .limit(1) + .pluck(:external_ip) + .first + end + private def missing_auto_devops_domain?(project) |