Class: RailsAppGenerator::AddOns::Sidekiq
- Inherits:
-
RailsAppGenerator::Addon
- Object
- Rails::Generators::Base
- RailsAppGenerator::Addon
- RailsAppGenerator::AddOns::Sidekiq
- Defined in:
- lib/rails_app_generator/addons/sidekiq.rb
Overview
Add Sidekiq to rails application
Sidekiq is a job server that can be used to process jobs in the background. ‘Sidekiq` is a subclass of `Addon` that adds a `apply` method that says “setup sidekiq” and copies the `app/workers` directory from the `templates` directory to the `app` directory
Instance Attribute Summary
Attributes inherited from RailsAppGenerator::Addon
#context, #dependencies, #gem_entries
Instance Method Summary collapse
Methods inherited from RailsAppGenerator::Addon
addon_name, dependencies, depends_on, gem, gem_entries, #initialize, required_gem, reset_gem_entries
Constructor Details
This class inherits a constructor from RailsAppGenerator::Addon
Instance Method Details
#apply ⇒ Object
12 13 14 15 |
# File 'lib/rails_app_generator/addons/sidekiq.rb', line 12 def apply say 'setup sidekiq' directory('app/workers', 'app/workers') end |