2019-06-10 16:18:27 +07:00
|
|
|
|
|
|
|
|
class RakeUtils
|
2023-03-17 16:12:49 +07:00
|
|
|
|
2019-06-10 16:18:27 +07:00
|
|
|
constructor :rake_wrapper
|
|
|
|
|
|
|
|
|
|
def task_invoked?(task_regex)
|
|
|
|
|
task_invoked = false
|
|
|
|
|
@rake_wrapper.task_list.each do |task|
|
|
|
|
|
if ((task.already_invoked) and (task.to_s =~ task_regex))
|
|
|
|
|
task_invoked = true
|
|
|
|
|
break
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
return task_invoked
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|