Class: AppGen::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/app_gen/app.rb

Instance Method Summary collapse

Instance Method Details

#generate(app_name, path) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/app_gen/app.rb', line 14

def generate(app_name, path)
  @app_name = app_name
  @app_root = File.join(path, app_name)
  @root = File.expand_path('../..', __dir__)

  create_directories
  create_files
  puts 'Complete!'
end