Class: UffizziCore::Credential::DockerHub::CreateWebhookJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- UffizziCore::Credential::DockerHub::CreateWebhookJob
- Defined in:
- app/jobs/uffizzi_core/credential/docker_hub/create_webhook_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(credential_id, image, deployment_id = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/jobs/uffizzi_core/credential/docker_hub/create_webhook_job.rb', line 6 def perform(credential_id, image, deployment_id = nil) if deployment_id.present? Rails.logger.info("DEPLOYMENT_PROCESS deployment_id=#{deployment_id} DockerHub CreateWebhooksJob") end credential = UffizziCore::Credential.find(credential_id) UffizziCore::DockerHubService.create_webhook(credential, image) end |