Class: AppGen::App
- Inherits:
-
Thor
- Object
- Thor
- AppGen::App
- 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.('../..', __dir__) create_directories create_files puts 'Complete!' end |