Class: Ptero::Generator::SetupGenerator

Inherits:
PHPGenerator show all
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

TEMPLATE_PATH

Instance Attribute Summary

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from PHPGenerator

#extension, #path

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

#initializeSetupGenerator

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