30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/steep/project/file_loader.rb', line 30
def load_sources(command_line_patterns)
project.targets.each do |target|
Steep.logger.tagged "target=#{target.name}" do
target_patterns = command_line_patterns.empty? ? target.source_patterns : command_line_patterns
each_path_in_patterns target_patterns, ".rb" do |path|
if target.possible_source_file?(path)
unless target.source_file?(path)
Steep.logger.info { "Adding source file: #{path}" }
target.add_source path, project.absolute_path(path).read
end
end
end
end
end
end
|