Class: Praxis::BootloaderStages::PluginLoader

Inherits:
Stage
  • Object
show all
Defined in:
lib/praxis/bootloader_stages/plugin_loader.rb

Instance Attribute Summary

Attributes inherited from Stage

#after_callbacks, #before_callbacks, #context, #name, #stages

Instance Method Summary collapse

Methods inherited from Stage

#after, #application, #before, #callback_args, #execute, #execute_callbacks, #run, #setup!, #setup_deferred_callbacks!

Constructor Details

#initialize(name, context, **opts) ⇒ PluginLoader

Returns a new instance of PluginLoader.



6
7
8
9
10
11
12
# File 'lib/praxis/bootloader_stages/plugin_loader.rb', line 6

def initialize(name, context, **opts)
  super

  stages << PluginConfigPrepare.new(:prepare, context, parent: self)
  stages << PluginConfigLoad.new(:load, context, parent: self)
  stages << PluginSetup.new(:setup, context, parent: self)
end