Class: Cubic::Generator::App

Inherits:
Base
  • Object
show all
Extended by:
FileUtils
Defined in:
lib/cubic/generators/app.rb

Overview

App is the last stop in the generation process. Once all generator instances have successfully dealt with the information given to them, they are sent here so they can turn that information into files, which are inserted into the generated application.

Instance Attribute Summary

Attributes inherited from Base

#files

Class Method Summary collapse

Methods inherited from Base

#callback, #generate, #initialize

Constructor Details

This class inherits a constructor from Cubic::Generator::Base

Class Method Details

.create(*generators) ⇒ Object



13
14
15
16
17
18
# File 'lib/cubic/generators/app.rb', line 13

def create(*generators)
  directories
  static_files
  insert_generated_files(generators)
  extra_files
end