Sha256: 4dcec80b14f61498ce6d13ab1038f3272b5d26045f63d804279c295a5221a38d

Contents?: true

Size: 568 Bytes

Versions: 24

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  #
  # Class UpdateVersion sets the right version in redis
  #
  # @author Mikael Henriksson <mikael@zoolutions.se>
  #
  class UpdateVersion
    #
    # Sets the right versions in redis
    #
    # @note the version isn't used yet but will be for automatic upgrades
    #
    # @return [true] when version changed
    #
    def self.call
      Script::Caller.call_script(
        :update_version,
        keys: [LIVE_VERSION, DEAD_VERSION],
        argv: [SidekiqUniqueJobs.version],
      )
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.0.0.beta25 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta24 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta23 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta22 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta21 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta20 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta19 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta18 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta17 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta16 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta15 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta14 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta13 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta12 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta11 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta10 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta9 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta8 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta7 lib/sidekiq_unique_jobs/update_version.rb
sidekiq-unique-jobs-7.0.0.beta6 lib/sidekiq_unique_jobs/update_version.rb