Class: Praxis::BootloaderStages::SubgroupLoader
- Defined in:
- lib/praxis/bootloader_stages/subgroup_loader.rb
Instance Attribute Summary collapse
Attributes inherited from Stage
#after_callbacks, #before_callbacks, #context, #name, #stages
Instance Method Summary collapse
-
#initialize(name, application) ⇒ SubgroupLoader
constructor
A new instance of SubgroupLoader.
- #setup! ⇒ Object
Methods inherited from Stage
#after, #application, #before, #callback_args, #execute, #execute_callbacks, #run, #setup_deferred_callbacks!
Constructor Details
#initialize(name, application) ⇒ SubgroupLoader
Returns a new instance of SubgroupLoader.
9 10 11 12 13 |
# File 'lib/praxis/bootloader_stages/subgroup_loader.rb', line 9 def initialize(name, application) super # always finalize Taylor after loading app code. end |
Instance Attribute Details
#order ⇒ Object
15 16 17 |
# File 'lib/praxis/bootloader_stages/subgroup_loader.rb', line 15 def order @order ||= application.file_layout[name] == [] ? [] : application.file_layout[name].groups.keys end |
Instance Method Details
#setup! ⇒ Object
19 20 21 22 23 24 |
# File 'lib/praxis/bootloader_stages/subgroup_loader.rb', line 19 def setup! order.each do |group| @stages << FileLoader.new(group, application, path: [name, group]) end setup_deferred_callbacks! end |