Sha256: 28966e520c3f8ae4e4593745df246e8df64db1bbf84678f0233bc34e28393cc5

Contents?: true

Size: 666 Bytes

Versions: 11

Compression:

Stored size: 666 Bytes

Contents

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(
          "initializer.rb",
          "config/initializers/bot.rb"
        )
      end

      hook_for :test_framework
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bot-0.0.34 lib/generators/bot/install/install_generator.rb
bot-0.0.33 lib/generators/bot/install/install_generator.rb
bot-0.0.32 lib/generators/bot/install/install_generator.rb
bot-0.0.31 lib/generators/bot/install/install_generator.rb
bot-0.0.30 lib/generators/bot/install/install_generator.rb
bot-0.0.29 lib/generators/bot/install/install_generator.rb
bot-0.0.28 lib/generators/bot/install/install_generator.rb
bot-0.0.27 lib/generators/bot/install/install_generator.rb
bot-0.0.26 lib/generators/bot/install/install_generator.rb
bot-0.0.23 lib/generators/bot/install/install_generator.rb
bot-0.0.22 lib/generators/bot/install/install_generator.rb