mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
18 lines
308 B
Ruby
18 lines
308 B
Ruby
|
|
||
|
class RakeUtils
|
||
|
|
||
|
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
|