116 |
if file!=".." and file!="." and File.stat("#{path}/#{file}").directory? |
if file!=".." and file!="." and File.stat("#{path}/#{file}").directory? |
117 |
filespec = "#{path}/#{file}/plugin.yaml" |
filespec = "#{path}/#{file}/plugin.yaml" |
118 |
next unless File.exist?(filespec) |
next unless File.exist?(filespec) |
119 |
@configuration.register YAML.load(File.open(filespec).read) |
@configuration.register(YAML.load(File.open(filespec).read), File.dirname(filespec)) |
120 |
elsif file[-5..-1]==".yaml" and !File.stat("#{path}/#{file}").directory? |
elsif file[-5..-1]==".yaml" and !File.stat("#{path}/#{file}").directory? |
121 |
filespec = "#{path}/#{file}" |
filespec = "#{path}/#{file}" |
122 |
@configuration.register YAML.load(File.open(filespec).read) |
@configuration.register(YAML.load(File.open(filespec).read), File.dirname(filespec)) |
123 |
end |
end |
124 |
end |
end |
125 |
end |
end |