Skip to content

Instantly share code, notes, and snippets.

@GuilleLeopold
Created February 3, 2020 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuilleLeopold/f5e698557009904fc49e2c001afb452e to your computer and use it in GitHub Desktop.
Save GuilleLeopold/f5e698557009904fc49e2c001afb452e to your computer and use it in GitHub Desktop.
Dir.glob(File.expand_path('../engines/*', __FILE__)).each do |path|
engine = File.basename(path)
gem engine, path: "engines/#{engine}", require: (ENV['ENGINE'].nil? || ENV['ENGINE'] == engine)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment