21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/jets/builders/handler_generator.rb', line 21
def poly_shims
missing = []
deducer = Jets::Builders::Deducer.new(@path)
poly_tasks = deducer.klass.tasks.select { |t| t.lang != :ruby }
poly_tasks.each do |task|
source_path = get_source_path(@path, task)
if File.exist?(source_path)
native_function(@path, task)
else
missing << source_path
end
end
unless missing.empty?
puts "ERROR: Missing source files. Please make sure these source files exist or remove their declarations".colorize(:red)
puts missing
exit 1
end
end
|