Class: UffizziCore::AccountService
- Inherits:
-
Object
- Object
- UffizziCore::AccountService
- Defined in:
- app/services/uffizzi_core/account_service.rb
Class Method Summary collapse
- .create_credential(credential) ⇒ Object
- .delete_credential(credential) ⇒ Object
- .update_credential(credential) ⇒ Object
Class Method Details
.create_credential(credential) ⇒ Object
5 6 7 8 9 |
# File 'app/services/uffizzi_core/account_service.rb', line 5 def create_credential(credential) UffizziCore::Deployment.active_for_credential_id(credential.id).pluck(:id).each do |deployment_id| UffizziCore::Deployment::CreateCredentialJob.perform_async(deployment_id, credential.id) end end |
.delete_credential(credential) ⇒ Object
17 18 19 20 21 |
# File 'app/services/uffizzi_core/account_service.rb', line 17 def delete_credential(credential) UffizziCore::Deployment.active_for_credential_id(credential.id).pluck(:id).each do |deployment_id| UffizziCore::Deployment::DeleteCredentialJob.perform_async(deployment_id, credential.id) end end |
.update_credential(credential) ⇒ Object
11 12 13 14 15 |
# File 'app/services/uffizzi_core/account_service.rb', line 11 def update_credential(credential) UffizziCore::Deployment.active_for_credential_id(credential.id).pluck(:id).each do |deployment_id| UffizziCore::Deployment::UpdateCredentialJob.perform_async(deployment_id, credential.id) end end |