Sha256: 6ee722095c68b519181ec3313cb85ec5396a6756bf7ddb75eb80fbc4080c85d1

Contents?: true

Size: 408 Bytes

Versions: 12

Compression:

Stored size: 408 Bytes

Contents

module Shipit
  class CacheDeploySpecJob < BackgroundJob
    include BackgroundJob::Unique

    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

12 entries across 12 versions & 1 rubygems

Version Path
shipit-engine-0.24.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.23.1 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.23.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.22.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.21.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.20.1 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.20.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.19.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.18.1 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.18.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.17.0 app/jobs/shipit/cache_deploy_spec_job.rb
shipit-engine-0.16.0 app/jobs/shipit/cache_deploy_spec_job.rb