Sha256: b93f240cb37d795aa015765faca5c0283b7feddcb4482ceea7d7e6f195f46d45
Contents?: true
Size: 536 Bytes
Versions: 6
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true require 'rails_autoscale_agent/version' module RailsAutoscaleAgent class Registration < Struct.new(:config, :worker_adapters) def to_params { dyno: config.dyno, pid: config.pid, ruby_version: RUBY_VERSION, rails_version: defined?(Rails) && Rails.version, gem_version: VERSION, # example: { worker_adapters: 'Sidekiq,Que' } worker_adapters: worker_adapters.map { |o| o.class.name.split('::').last }.join(','), } end end end
Version data entries
6 entries across 6 versions & 1 rubygems