Class: Boppers::Generator::App

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/boppers/generator/app.rb', line 10

def self.source_root
  File.join(__dir__, "app")
end

Instance Method Details

#copy_filesObject



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_commandsObject



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