313 |
def build_graph |
def build_graph |
314 |
each_load_dependency do |other, version| |
each_load_dependency do |other, version| |
315 |
other_plugin = @configuration.plugins[other] |
other_plugin = @configuration.plugins[other] |
316 |
|
unless other_plugin |
317 |
|
puts "#{@name} has a load dependency not found: #{other}" |
318 |
|
return false |
319 |
|
end |
320 |
@fwd_load_graph << other_plugin |
@fwd_load_graph << other_plugin |
321 |
other_plugin.rev_load_graph << self |
other_plugin.rev_load_graph << self |
322 |
end |
end |
323 |
each_start_dependency do |other, version| |
each_start_dependency do |other, version| |
324 |
other_plugin = @configuration.plugins[other] |
other_plugin = @configuration.plugins[other] |
325 |
|
unless other_plugin |
326 |
|
puts "#{@name} has a start dependency not found: #{other}" |
327 |
|
return false |
328 |
|
end |
329 |
|
return false unless other_plugin |
330 |
@fwd_start_graph << other_plugin |
@fwd_start_graph << other_plugin |
331 |
other_plugin.rev_start_graph << self |
other_plugin.rev_start_graph << self |
332 |
end |
end |
333 |
|
return true |
334 |
end |
end |
335 |
|
|
336 |
## |
## |