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



21
22
23
# File 'lib/generators/qa/install/install_generator.rb', line 21

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

#create_initializer_config_fileObject



17
18
19
# File 'lib/generators/qa/install/install_generator.rb', line 17

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

#inject_routesObject



11
12
13
14
15
# File 'lib/generators/qa/install/install_generator.rb', line 11

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