Sha256: 3763cff7f0141701a7d26f6f3dff39ffb1583ade9810808e05b351cdfad5b218
Contents?: true
Size: 598 Bytes
Versions: 53
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # 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 class Sidekiq < RailsAppGenerator::Addon def apply say 'setup sidekiq' directory('app/workers', 'app/workers') end end end end
Version data entries
53 entries across 53 versions & 1 rubygems