Class: Boppers::Generator::App
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Boppers::Generator::App
- Includes:
- Thor::Actions
- Defined in:
- lib/boppers/generator/app.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/boppers/generator/app.rb', line 10 def self.source_root File.join(__dir__, "app") end |
Instance Method Details
#copy_files ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/boppers/generator/app.rb', line 14 def copy_files copy_file "gems.rb" copy_file "Procfile" copy_file "config/boppers.rb" copy_file ".gitgnore" copy_file ".env" end |
#run_commands ⇒ Object
22 23 24 25 26 27 |
# File 'lib/boppers/generator/app.rb', line 22 def run_commands inside destination_root do run "git init" run "bundle install" end end |