Class: Qa::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/qa/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_oclcts_configsObject



10
11
12
# File 'lib/generators/qa/install/install_generator.rb', line 10

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

#inject_routesObject



4
5
6
7
8
# File 'lib/generators/qa/install/install_generator.rb', line 4

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