Sha256: c66194309112afd37262f29df9c80b456b78fb6a62cdceb8c964fed0a7f0e768

Contents?: true

Size: 558 Bytes

Versions: 9

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class DestroyRepositoryJob < BackgroundJob
    queue_as :default

    # repository
    # +-- stacks
    #     +-- api_clients
    #     +-- commits
    #     |   +-- commit_deployments
    #     |   |   +-- statuses
    #     |   +-- statuses
    #     +-- github_hooks
    #     +-- hooks
    #     +-- pull_requests
    #     +-- tasks
    #         +-- chunks

    def perform(repository)
      repository.stacks.each { |stack| DestroyStackJob.perform_now(stack) }
      repository.destroy!
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.38.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.37.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.36.1 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.36.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.35.1 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.35.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.34.0 app/jobs/shipit/destroy_repository_job.rb
shipit-engine-0.33.0 app/jobs/shipit/destroy_repository_job.rb