Открыть боковую панель
nt_test133
nt_project_uxpg8lvcuq8w
Коммиты
b9d9b01e
Коммит
b9d9b01e
создал
Сен 12, 2019
по автору
João Cunha
Просмотр файлов
Move uninstall_errored_or_installed to a private method
владелец
0708126f
Изменения
1
Скрыть пробелы
Построчно
Рядом
app/models/clusters/concerns/application_core.rb
Просмотр файла @
b9d9b01e
...
...
@@ -22,10 +22,6 @@ def can_uninstall?
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 @@ def post_uninstall
# 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
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать