Sha256: 92367ebe0701cac6832d93039da0577d6b3fc4915db86ddf9f83d1972df029f6

Contents?: true

Size: 484 Bytes

Versions: 10

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class CacheDeploySpecJob < BackgroundJob
    include BackgroundJob::Unique
    on_duplicate :drop

    queue_as :deploys

    def perform(stack)
      return if stack.inaccessible?

      commands = Commands.for(stack)
      commands.with_temporary_working_directory(commit: stack.commits.reachable.last) do |path|
        stack.update!(cached_deploy_spec: DeploySpec::FileSystem.new(path, stack.environment))
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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