Skip to content

Commit 849309b

Browse files
committed
Update thor code to skip file beginning with _
1 parent 6c734f5 commit 849309b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def generate(*files)
6363
# -- Test helper
6464
copy_file "templates/ruby/test_helper.rb", @output.join('test').join('test_helper.rb') if options[:language] == 'ruby'
6565

66-
files = Dir.entries(@input.to_s).reject { |f| f.start_with?('.') }
66+
files = Dir.entries(@input.to_s).reject { |f| f.start_with?('.') || f.start_with?('_') }
6767

6868
files.each do |filepath|
6969
file = @input.join(filepath)

0 commit comments

Comments
 (0)