Sha256: f43ab557d1b5a47565cca942ceb5f055d448d443be21edfb253526397178ac5a

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

require 'rails/generators'

module Kanina
  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

1 entries across 1 versions & 1 rubygems

Version Path
kanina-0.6.0 lib/generators/kanina/install/install_generator.rb