Sha256: b43280db6cd710783609f35041c6bc7dfefae568aadf97267db6d23497deb6d7

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require "sidekiq/restart/version"
require "sidekiq/restart/command"
require "sidekiq/restart/web_extension"

begin
  require "sinatra"
  require "sidekiq/web"

  Sidekiq::Web.register Sidekiq::Restart::WebExtension
rescue LoadError
  # client-only usage
end

module Sidekiq
  module Restart
    module_function

    def worker id
      Command.new(Sidekiq).run id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-restart-0.0.1 lib/sidekiq/restart.rb