Method: Build::Graph::Walker#call

Defined in:
lib/build/graph/walker.rb

#call(node) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
# File 'lib/build/graph/walker.rb', line 81

def call(node)
  # We try to fetch the task if it has already been invoked, otherwise we create a new task.
  @tasks.fetch(node) do
    @logger.debug{"Update: #{node}"}
    
    @update.call(self, node)
    
    # This should now be defined:
    @tasks[node]
  end
end