Class: Rubotnik::Generator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rubotnik/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/rubotnik/generator.rb', line 9

def self.source_root
  File.dirname(__FILE__) + '/../../templates'
end

Instance Method Details

#create_file_structureObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/rubotnik/generator.rb', line 13

def create_file_structure
 copy_file 'config.ru', 'config.ru'
 copy_file 'Gemfile', 'Gemfile'
 copy_file '.env', '.env'
 copy_file 'puma.rb', 'config/puma.rb'
 copy_file 'Procfile', 'Procfile'
 copy_file 'commands.rb', 'bot/commands/commands.rb'
 copy_file 'location.rb', 'bot/commands/location.rb'
 copy_file 'ui_examples.rb', 'bot/commands/ui_examples.rb'
 copy_file 'bot.rb', 'bot/bot.rb'
 copy_file 'profile.rb', 'bot/profile.rb'
 copy_file '.gitignore', '.gitignore'
end