Class: Pu::Res::EntityGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
PlutoniumGenerators::Generator
Defined in:
lib/generators/pu/res/entity/entity_generator.rb

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

included

Methods included from PlutoniumGenerators::Concerns::Logger

#debug, #error, #exception, #info, #success, #warn

Methods included from PlutoniumGenerators::Concerns::Config

#read_config, #write_config

Instance Method Details

#startObject



19
20
21
22
23
# File 'lib/generators/pu/res/entity/entity_generator.rb', line 19

def start
  ensure_customer_model_exists! if behavior == :invoke
  generate_entity_resource
  generate_membership_resource
end