Class: RailsAutoscaleAgent::Registration
- Inherits:
-
Struct
- Object
- Struct
- RailsAutoscaleAgent::Registration
- Defined in:
- lib/rails_autoscale_agent/registration.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#worker_adapters ⇒ Object
Returns the value of attribute worker_adapters.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
6 7 8 |
# File 'lib/rails_autoscale_agent/registration.rb', line 6 def config @config end |
#worker_adapters ⇒ Object
Returns the value of attribute worker_adapters
6 7 8 |
# File 'lib/rails_autoscale_agent/registration.rb', line 6 def worker_adapters @worker_adapters end |
Instance Method Details
#to_params ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rails_autoscale_agent/registration.rb', line 8 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 |