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
Methods inherited from Stage
#after, #application, #before, #callback_args, #execute, #execute_callbacks, #initialize, #run, #setup_deferred_callbacks!
Constructor Details
This class inherits a constructor from Praxis::Stage
Instance Attribute Details
#order ⇒ Object
8 9 10 |
# File 'lib/praxis/bootloader_stages/subgroup_loader.rb', line 8 def order @order ||= application.file_layout[name] == [] ? [] : application.file_layout[name].groups.keys end |
Instance Method Details
#setup! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/praxis/bootloader_stages/subgroup_loader.rb', line 12 def setup! order.each do |group| @stages << FileLoader.new(group, application, path: [name, group]) end setup_deferred_callbacks! end |