Class: Pu::Saas::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Saas::SetupGenerator
- Includes:
- PlutoniumGenerators::Generator
- Defined in:
- lib/generators/pu/saas/setup_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
Instance Method Details
#start ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/generators/pu/saas/setup_generator.rb', line 61 def start ensure_rodauth_installed generate_user generate_entity unless [:skip_entity] generate_membership unless [:skip_membership] generate_portal if [:portal] && ![:skip_entity] generate_profile if [:profile] generate_welcome if [:welcome] && ![:skip_entity] && [:portal] generate_invites if [:invites] && ![:skip_entity] && ![:skip_membership] generate_api_client if [:api_client].present? rescue => e exception "#{self.class} failed:", e end |