Class: Kanina::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Kanina::InstallGenerator
- Defined in:
- lib/generators/kanina/install/install_generator.rb
Overview
Kanina::InstallGenerator
handles installing Kanina into a Rails project.
Instance Method Summary collapse
-
#create_amqp_config_file ⇒ Object
This method is called automatically by rails when you 'install' Kanina.
Instance Method Details
#create_amqp_config_file ⇒ Object
This method is called automatically by rails when you 'install' Kanina. It copies a sample amqp.yml file to the Rails config folder, and adds amqp.yml to the .gitignore.
11 12 13 14 15 |
# File 'lib/generators/kanina/install/install_generator.rb', line 11 def create_amqp_config_file filepath = Rails.root + "config" template "amqp.yml.sample", filepath + "amqp.yml.sample" append_file Rails.root + '.gitignore', 'config/amqp.yml' end |