Sha256: f953324a64cb0c87a052f65277c8524ee2cd0b0b2d5836d6a0a822e4fb09300c

Contents?: true

Size: 397 Bytes

Versions: 22

Compression:

Stored size: 397 Bytes

Contents

class FetchDeployedRevisionJob < BackgroundJob
  queue_as :default

  def perform(stack)
    return if stack.deploying?

    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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.5.1 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.5.0 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.10 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.9 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.8 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.7 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.6 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.5 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.4 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.3 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.2 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.1 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.4.0 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.3.1 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.3.0 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.2.3 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.2.2 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.2.1 app/jobs/fetch_deployed_revision_job.rb
shipit-engine-0.2.0 app/jobs/fetch_deployed_revision_job.rb