Sha256: eeb6a6e6b1f07fe894831e14f85afeae3e422e63b55f65787f219d2d947113fa

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 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

1 entries across 1 versions & 1 rubygems

Version Path
geoblacklight_sidecar_images-0.9.2 lib/generators/geoblacklight_sidecar_images/jobs_generator.rb