Commit 58707175 authored by Shinya Maeda's avatar Shinya Maeda

Update environment.rb

parent 23112c46
...@@ -137,25 +137,16 @@ class Environment < ActiveRecord::Base ...@@ -137,25 +137,16 @@ class Environment < ActiveRecord::Base
end end
end end
<<<<<<< HEAD
def deployment_service_ready? def deployment_service_ready?
project.deployment_service.present? && available? && last_deployment.present? project.deployment_platform.present? && available? && last_deployment.present?
end end
def terminals def terminals
project.deployment_service.terminals(self) if deployment_service_ready? project.deployment_platform.terminals(self) if deployment_service_ready?
end end
def rollout_status def rollout_status
project.deployment_service.rollout_status(self) if deployment_service_ready? project.deployment_service.rollout_status(self) if deployment_service_ready?
=======
def has_terminals?
project.deployment_platform.present? && available? && last_deployment.present?
end
def terminals
project.deployment_platform.terminals(self) if has_terminals?
>>>>>>> upstream/master
end end
def has_metrics? def has_metrics?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment