Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-09-12 12:00:54 +0300
committerJoão Cunha <j.a.cunha@gmail.com>2019-09-12 12:28:25 +0300
commitb9d9b01ee8d605ffe26c1c999b4b066d7cada2bc (patch)
treec3ec70f87165d29c677f9ae82dec34510b5f247e
parent0708126f86c4b78bc4739ee89fed842130d88bb1 (diff)
Move uninstall_errored_or_installed to a private method
-rw-r--r--app/models/clusters/concerns/application_core.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/clusters/concerns/application_core.rb b/app/models/clusters/concerns/application_core.rb
index b5388be283e..84875f4e6a3 100644
--- a/app/models/clusters/concerns/application_core.rb
+++ b/app/models/clusters/concerns/application_core.rb
@@ -22,10 +22,6 @@ module Clusters
allowed_to_uninstall? && uninstall_errored_or_installed?
end
- def uninstall_errored_or_installed?
- uninstall_errored? || installed?
- end
-
# All new applications should uninstall by default
# Override if there's dependencies that needs to be uninstalled first
def allowed_to_uninstall?
@@ -60,6 +56,12 @@ module Clusters
# Override if your application needs any action after
# being uninstalled by Helm
end
+
+ private
+
+ def uninstall_errored_or_installed?
+ uninstall_errored? || installed?
+ end
end
end
end