Sha256: a4be65229d8c75f99e38329a45c0d69279115b7c1de16416e87050c121bd342b
Contents?: true
Size: 579 Bytes
Versions: 37
Compression:
Stored size: 579 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 < AddOn def apply say 'setup sidekiq' directory('app/workers', 'app/workers') end end end end
Version data entries
37 entries across 37 versions & 1 rubygems