module Bot module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def create_application_responder copy_file( "application_responder.rb", "app/bot/application_responder.rb" ) copy_file( "default_responder.rb", "app/bot/responders/default.rb" ) copy_file( "application_handler.rb", "app/bot/application_handler.rb" ) copy_file( "bot_helper.rb", "app/bot/helpers/bot_helper.rb" ) copy_file( "initializer.rb", "config/initializers/bot.rb" ) end hook_for :test_framework end end end