module Rake::TaskManager
Attributes
last_flow[RW]
Public Instance Methods
get_flow(_task)
click to toggle source
Return current flow, clearing it in the process.
# File lib/bow/rake.rb, line 41 def get_flow(_task) @last_flow ||= nil flow = @last_flow&.first @last_flow = nil flow end
intern(task_class, task_name)
click to toggle source
Lookup a task. Return an existing task if found, otherwise create a task of the current type.
# File lib/bow/rake.rb, line 33 def intern(task_class, task_name) @tasks[task_name.to_s] ||= task_class.new(task_name, self) task = @tasks[task_name.to_s] task.unpack_flow(get_flow(task)) task end