We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0ba4a commit 883f6ddCopy full SHA for 883f6dd
lib/thor/actions.rb
@@ -131,11 +131,11 @@ def source_paths
131
# Receives a file or directory and search for it in the source paths.
132
#
133
def find_in_source_paths(file)
134
- files = [file, file + TEMPLATE_EXTNAME]
+ possible_files = [file, file + TEMPLATE_EXTNAME]
135
relative_root = relative_to_original_destination_root(destination_root, false)
136
137
source_paths.each do |source|
138
- files.each do |f|
+ possible_files.each do |f|
139
source_file = File.expand_path(f, File.join(source, relative_root))
140
return source_file if File.exist?(source_file)
141
end
0 commit comments