Sha256: d180596c82e3ad4b8078daf48cae20a639a955306301e5519e0811b3ac7b6208

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 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(
          "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

5 entries across 5 versions & 1 rubygems

Version Path
bot-0.0.20 lib/generators/bot/install/install_generator.rb
bot-0.0.19 lib/generators/bot/install/install_generator.rb
bot-0.0.18 lib/generators/bot/install/install_generator.rb
bot-0.0.17 lib/generators/bot/install/install_generator.rb
bot-0.0.16 lib/generators/bot/install/install_generator.rb