Class: Pu::Profile::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator, Concerns::ProfileArguments
Defined in:
lib/generators/pu/profile/install_generator.rb

Instance Method Summary collapse

Methods included from Concerns::ProfileArguments

#normalize_arguments

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



21
22
23
24
25
26
27
28
# File 'lib/generators/pu/profile/install_generator.rb', line 21

def start
  normalize_arguments
  generate_profile_scaffold
  add_user_association
  add_unique_index_to_migration
rescue => e
  exception "#{self.class} failed:", e
end