Sha256: 74c1715343167b53376231fb9231706a168a713cdfbe63a5d6130cb902f3c158

Contents?: true

Size: 670 Bytes

Versions: 35

Compression:

Stored size: 670 Bytes

Contents

class Qa::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  desc """
    This generator makes the following changes to your application:
    1. Set up mount of Qa in routes
    2. Add qa initializer to config/initializers
    3. Add oclcts authority configuration
         """

  def inject_routes
    insert_into_file "config/routes.rb", after: ".draw do" do
      %(\n  mount Qa::Engine => '/qa'\n)
    end
  end

  def create_initializer_config_file
    copy_file 'config/initializers/qa.rb'
  end

  def copy_oclcts_configs
    copy_file "config/oclcts-authorities.yml", "config/oclcts-authorities.yml"
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
qa-5.13.0 lib/generators/qa/install/install_generator.rb
qa-5.12.0 lib/generators/qa/install/install_generator.rb
qa-5.11.0 lib/generators/qa/install/install_generator.rb
qa-5.10.0 lib/generators/qa/install/install_generator.rb
qa-5.9.0 lib/generators/qa/install/install_generator.rb
qa-5.8.1 lib/generators/qa/install/install_generator.rb
qa-5.8.0 lib/generators/qa/install/install_generator.rb
qa-5.7.0 lib/generators/qa/install/install_generator.rb
qa-5.6.0 lib/generators/qa/install/install_generator.rb
qa-5.5.2 lib/generators/qa/install/install_generator.rb
qa-4.3.0 lib/generators/qa/install/install_generator.rb
qa-3.1.0 lib/generators/qa/install/install_generator.rb
qa-2.3.0 lib/generators/qa/install/install_generator.rb
qa-5.5.1 lib/generators/qa/install/install_generator.rb
qa-5.5.0 lib/generators/qa/install/install_generator.rb
qa-5.4.0 lib/generators/qa/install/install_generator.rb
qa-5.3.1 lib/generators/qa/install/install_generator.rb
qa-5.3.0 lib/generators/qa/install/install_generator.rb
qa-5.2.0 lib/generators/qa/install/install_generator.rb
qa-5.1.0 lib/generators/qa/install/install_generator.rb