Class: Pu::Saas::EntityGenerator

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

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

derive_association_name, find_shared_namespace, 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



16
17
18
19
20
21
22
# File 'lib/generators/pu/saas/entity_generator.rb', line 16

def start
  generate_entity_resource
  add_unique_index_to_migration
  add_dynamic_path_parameter
rescue => e
  exception "#{self.class} failed:", e
end