Sha256: 9c27c39deb70b6195a4d33ce0f4c7db42f537989b16a08f2b7e93abc893df39f
Contents?: true
Size: 720 Bytes
Versions: 18
Compression:
Stored size: 720 Bytes
Contents
# frozen_string_literal: true module Karafka # Loader for requiring all the files in a proper order module Loader # Order in which we want to load app files DIRS = %w[ lib app ].freeze # Will load files in a proper order (based on DIRS) # @param [String] root path from which we want to start def self.load(root) DIRS.each do |dir| path = File.join(root, dir) next unless File.exist?(path) load!(path) end end # Requires all the ruby files from one path in a proper order # @param path [String] path (dir) from which we want to load ruby files in a proper order def self.load!(path) require_all(path) end end end
Version data entries
18 entries across 18 versions & 1 rubygems