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