Class: Ptero::Generator::SetupGenerator
- Inherits:
-
PHPGenerator
- Object
- Ptero::Generator
- PHPGenerator
- Ptero::Generator::SetupGenerator
- Defined in:
- lib/ptero/generators/setupgenerator.rb
Overview
A generator for “setup” files that load dependencies and initialize the application
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#initialize ⇒ SetupGenerator
constructor
The name of the setup is always the same as the name of the Application.
Methods inherited from PHPGenerator
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #path, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize ⇒ SetupGenerator
The name of the setup is always the same as the name of the Application
14 15 16 |
# File 'lib/ptero/generators/setupgenerator.rb', line 14 def initialize super Ptero::Application.app_for(Dir.pwd).name.downcase end |