Class: UffizziCore::AccountService

Inherits:
Object
  • Object
show all
Defined in:
app/services/uffizzi_core/account_service.rb

Class Method Summary collapse

Class Method Details

.create_credential(credential) ⇒ Object



5
6
7
8
9
10
11
# File 'app/services/uffizzi_core/account_service.rb', line 5

def create_credential(credential)
  credential..projects.active.each do |project|
    project.deployments.active.each do |deployment|
      UffizziCore::Deployment::CreateCredentialJob.perform_async(deployment.id, credential.id)
    end
  end
end

.delete_credential(credential) ⇒ Object



13
14
15
16
17
18
19
# File 'app/services/uffizzi_core/account_service.rb', line 13

def delete_credential(credential)
  credential..projects.active.each do |project|
    project.deployments.active.each do |deployment|
      UffizziCore::Deployment::DeleteCredentialJob.perform_async(deployment.id, credential.id)
    end
  end
end