Module: Neetodeploy::Autoscale
- Defined in:
- lib/neetodeploy-autoscale.rb,
lib/neetodeploy/autoscale/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"1.0.5"
Class Method Summary collapse
Class Method Details
.setup_middleware ⇒ Object
10 11 12 13 14 |
# File 'lib/neetodeploy-autoscale.rb', line 10 def setup_middleware require "neetodeploy/autoscale/middleware" Neetodeploy::Autoscale.setup_rails if defined? Rails Neetodeploy::Autoscale.setup_sidekiq if defined?(Sidekiq) end |
.setup_rails ⇒ Object
16 17 18 |
# File 'lib/neetodeploy-autoscale.rb', line 16 def setup_rails require "neetodeploy/autoscale/railtie" end |
.setup_sidekiq ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/neetodeploy-autoscale.rb', line 20 def setup_sidekiq require "neetodeploy/autoscale/sidekiq_middleware" Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Neetodeploy::SidekiqMiddleware end end end |