Class: Pu::Wizards::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Wizards::InstallGenerator
- Defined in:
- lib/generators/pu/wizards/install_generator.rb
Overview
Turns the wizard subsystem on.
App-wide, and takes no portal — unlike pu:async_interactions:install,
which connects a RESOURCE and therefore needs somewhere to route it. A
wizard mounts itself wherever it is declared (the wizard macro on a
definition, or register_wizard in a portal or the main app), so there is
nothing here to attach to a portal.
What it does is the two steps every wizard app needs and neither of which a wizard can do for itself: flip the flag that registers the migration path, and schedule the sweep.
Constant Summary
Constants included from PlutoniumGenerators::Concerns::ConfiguresRecurring
PlutoniumGenerators::Concerns::ConfiguresRecurring::ENV_KEYS
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
30 31 32 33 34 35 36 |
# File 'lib/generators/pu/wizards/install_generator.rb', line 30 def start enable_wizards schedule_sweep_job migration_reminder rescue => e exception "#{self.class} failed:", e end |