# File lib/capistrano/configuration/namespaces.rb, line 118 def find_task(name) parts = name.to_s.split(/:/) tail = parts.pop.to_sym ns = self until parts.empty? next_part = parts.shift ns = next_part.empty? ? nil : ns.namespaces[next_part.to_sym] return nil if ns.nil? end if ns.namespaces.key?(tail) ns = ns.namespaces[tail] tail = DEFAULT_TASK end ns.tasks[tail] end