Class: UffizziCore::Deployment::DeleteCredentialJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/uffizzi_core/deployment/delete_credential_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(deployment_id, credential_id) ⇒ Object



6
7
8
9
10
11
12
# File 'app/jobs/uffizzi_core/deployment/delete_credential_job.rb', line 6

def perform(deployment_id, credential_id)
  Rails.logger.info("DEPLOYMENT_PROCESS deployment_id=#{deployment_id} DeleteCredentialJob(cred_id:#{credential_id})")

  deployment = UffizziCore::Deployment.find(deployment_id)
  credential = UffizziCore::Credential.find(credential_id)
  UffizziCore::ControllerService.delete_credential(deployment, credential)
end