Class: Ella::ProjectGenerator

Inherits:
Generator show all
Defined in:
lib/ella/generator/project_generator.rb

Overview

This beast of a subclass generates a new Ella project from scratch.


Ella requires a main project file for almost everything. Consider this, anyone who might want to change the order of this method.

Instance Method Summary collapse

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Ella::Generator

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ella/generator/project_generator.rb', line 9

def run
  Log.yell("Generating New Ella Project: \"#{@directory.human}\"")

  prepare_project_directory
  create_main_project_file
  initialize_git
  generate_pipeline_directories
  initialize_config
  generate_model_directory
  generate_views
  generate_controllers
  initialize_bundle
end