Sha256: 52497620fdbecdd4fa82ae18e127cb0bd4b870146d19511ad5cd289868a25576

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require "rails/generators"

module GeoblacklightSidecarImages
  class JobsGenerator < Rails::Generators::Base
    source_root File.expand_path("templates", __dir__)

    desc <<-DESCRIPTION
      This generator makes the following changes to your application:
       1. Configures a default development environment queue adapter
    DESCRIPTION

    def config_development_jobs_queue_adapter
      job_config = <<-"JOBS"
        config.active_job.queue_adapter = :inline
      JOBS

      inject_into_file "config/environments/development.rb", job_config, before: /^end/
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight_sidecar_images-1.0.0 lib/generators/geoblacklight_sidecar_images/jobs_generator.rb
geoblacklight_sidecar_images-0.9.1 lib/generators/geoblacklight_sidecar_images/jobs_generator.rb
geoblacklight_sidecar_images-0.9.0 lib/generators/geoblacklight_sidecar_images/jobs_generator.rb