Class: Bot::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/bot/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_application_responderObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/generators/bot/install/install_generator.rb', line 6

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