Class: AppStructure
- Includes:
- Thor::Actions
- Defined in:
- lib/runways/generators/app_structure_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/runways/generators/app_structure_generator.rb', line 8 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#root_directory ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/runways/generators/app_structure_generator.rb', line 12 def root_directory app_name = name.to_s empty_directory(app_name) path = app_name app_directory(path) db_directory(path) lib_directory(path) proto_directory(path) config_directory(path) test_directory(path) generate_gemfile(path) generate_rake_file(path) generate_server_file(path) run_protoc_cmd(path) run_bundle_install(path) end |