Sha256: 22cb47d6661adecd4770426a851b9af5c8760d9121eed046c3801cd1f7f7b0ac

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

module Praxis

  module BootloaderStages

    class SubgroupLoader < Stage

      attr_writer :order

      def initialize(name, application)
        super
        # always finalize Taylor after loading app code.

      end

      def order
        @order ||= application.file_layout[name] == [] ? [] : application.file_layout[name].groups.keys
      end

      def setup!
        order.each do |group|
          @stages << FileLoader.new(group, application, path: [name, group])
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
praxis-0.16.1 lib/praxis/bootloader_stages/subgroup_loader.rb
praxis-0.16.0 lib/praxis/bootloader_stages/subgroup_loader.rb
praxis-0.15.0 lib/praxis/bootloader_stages/subgroup_loader.rb