lib/nake/file_task.rb
# return true if the task need to be executed, false otherwise
return true if the task need to be executed, false otherwise
return true if the task need to be executed false otherwise
def invoke_dependencies(*args, options)
      self.dependencies.each do |name|
        if task = self.class[name] 
          task.call(*args, options) 
        elsif File.exist?(name) 
          task_will_run?(name)
        else
          raise TaskNotFound, "Task with name #{name} doesn't exist"
        end
      end
    end
def invoke_dependencies ( * args , options ) self . dependencies . each do | name | if task = self . class [ name ] task . call ( * args , options ) elsif File . exist? ( name ) task_will_run? ( name ) else raise TaskNotFound , "Task with name #{name} doesn't exist" end end end
return true if the task need to be executed, false otherwise
return true if the task need to be executed false otherwise
# first try if there is a task with given name # TODO: what about arguments? # if not, then fallback to file
args
options