Class: Padrino::Generators::Project
- Inherits:
- Thor::Group
- Object
- Thor::Group
- Padrino::Generators::Project
Overview
Responsible for generating new Padrino projects based on the specified project components.
Class Method Summary
Instance Method Summary
-
#bundle_dependencies ⇒ Object
Bundle all required components using bundler and Gemfile. -
#finish_message ⇒ Object
Finish message. -
#git_author_email ⇒ Object
Returns the git author email config or a fill-in value. -
#git_author_name ⇒ Object
Returns the git author name config or a fill-in value. -
#setup_components ⇒ Object
For each component, retrieve a valid choice and then execute the associated generator. -
#setup_project ⇒ Object
Copies over the Padrino base application app. -
#setup_test_files ⇒ Object
Generates test files for tiny app skeleton.
Methods included from Runner
#app, #generate, #git, #project, #rake
Methods included from Actions
#already_exists?, #app_skeleton, #apply_component_for, #apply_default_fields, #check_app_existence, #destination_root, #empty_directory_with_keep_file, #execute_component_setup, #fetch_app_name, #fetch_component_choice, #fetch_project_name, #in_app_root?, #include_component_module_for, #initializer, #inject_into_file, #insert_hook, #insert_into_gemfile, #insert_middleware, #invalid_fields, #keep_file, #middleware, #recognize_path, #require_contrib, #require_dependencies, #resolve_valid_choice, #retrieve_component_config, #run_bundler, #store_component_choice, #store_component_config, #test?, #tiny?, #valid_choice?, #valid_constant?, #validate_namespace
Class Method Details
.banner ⇒ Object
.source_root ⇒ Object
Instance Method Details
#bundle_dependencies ⇒ Object
Bundle all required components using bundler and Gemfile.
#finish_message ⇒ Object
Finish message.
#git_author_email ⇒ Object
Returns the git author email config or a fill-in value.
#git_author_name ⇒ Object
Returns the git author name config or a fill-in value.
#setup_components ⇒ Object
For each component, retrieve a valid choice and then execute the associated generator.
#setup_project ⇒ Object
Copies over the Padrino base application app.
#setup_test_files ⇒ Object
Generates test files for tiny app skeleton.
© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Generators/Project