Sha256: ac024ea97d0ab540824ea1b0e3ed338a4276ac0db020a7dc8897d27f74add88e
Contents?: true
Size: 485 Bytes
Versions: 15
Compression:
Stored size: 485 Bytes
Contents
module Shipit class FetchDeployedRevisionJob < BackgroundJob queue_as :default def perform(stack) return if stack.active_task? return if stack.inaccessible? commands = StackCommands.new(stack) begin sha = commands.fetch_deployed_revision rescue DeploySpec::Error end return unless sha.present? begin stack.update_deployed_revision(sha) rescue ActiveRecord::RecordNotFound end end end end
Version data entries
15 entries across 15 versions & 1 rubygems