Class: Kybus::CLI::Bot::Config::BotBuilderGenerator

Inherits:
FileProvider
  • Object
show all
Defined in:
lib/kybus/cli/bot/file_providers/bot_builder_generator.rb

Instance Method Summary collapse

Methods inherited from FileProvider

autoregister!, #bot_name, #bot_name_class, #bot_name_constantize, #bot_name_snake_case, #generate, #initialize, #keep_files, #skip_file?

Constructor Details

This class inherits a constructor from Kybus::CLI::Bot::FileProvider

Instance Method Details

#make_contentsObject



14
15
16
17
18
19
20
# File 'lib/kybus/cli/bot/file_providers/bot_builder_generator.rb', line 14

def make_contents
  <<~RUBY
    # frozen_string_literal: true

    BOT = #{bot_name_class}.new(APP_CONF['bots']['main'])
  RUBY
end

#saving_pathObject



10
11
12
# File 'lib/kybus/cli/bot/file_providers/bot_builder_generator.rb', line 10

def saving_path
  'config_loaders/bot_builder.rb'
end