Make plugin load order deterministic
This commit is contained in:
parent
2c7b47fc40
commit
f361adef44
|
@ -11,7 +11,7 @@ class Plugin::Instance
|
|||
def self.find_all(parent_path)
|
||||
[].tap { |plugins|
|
||||
# also follows symlinks - http://stackoverflow.com/q/357754
|
||||
Dir["#{parent_path}/**/*/**/plugin.rb"].each do |path|
|
||||
Dir["#{parent_path}/**/*/**/plugin.rb"].sort.each do |path|
|
||||
source = File.read(path)
|
||||
metadata = Plugin::Metadata.parse(source)
|
||||
plugins << self.new(metadata, path)
|
||||
|
|
Loading…
Reference in New Issue