Class: Clusters::Applications::DestroyService
- Inherits:
-
BaseService
- Object
- BaseService
- Clusters::Applications::DestroyService
- Defined in:
- app/services/clusters/applications/destroy_service.rb
Constant Summary
Constants inherited from BaseService
BaseService::FLUENTD_KNOWN_ATTRS, BaseService::InvalidApplicationError
Instance Attribute Summary
Attributes inherited from BaseService
#cluster, #current_user, #params
Instance Method Summary collapse
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Clusters::Applications::BaseService
Instance Method Details
#execute(_request) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/services/clusters/applications/destroy_service.rb', line 6 def execute(_request) instantiate_application.tap do |application| break unless application.can_uninstall? application.make_scheduled! Clusters::Applications::UninstallWorker.perform_async(application.name, application.id) end end |