Sha256: 7da3ab308884d2efba5126785cb506833d608b2007cfbe322d4341609ee01725
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
require 'rails/generators' module Kanina # `Kanina::InstallGenerator` handles installing Kanina into a Rails project. class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) # 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. 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems