Skip to content

Commit ce18deb

Browse files
authored
Merge pull request #747 from Mitsuru53/Mitsuru53/load-dir-under-tasks
Loaded the directory under tasks.
2 parents 0d3a1dd + 6e86ff9 commit ce18deb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/thor/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def thor_root_glob
211211
#
212212
def globs_for(path)
213213
path = escape_globs(path)
214-
["#{path}/Thorfile", "#{path}/*.thor", "#{path}/tasks/*.thor", "#{path}/lib/tasks/*.thor"]
214+
["#{path}/Thorfile", "#{path}/*.thor", "#{path}/tasks/*.thor", "#{path}/lib/tasks/**/*.thor"]
215215
end
216216

217217
# Return the path to the ruby interpreter taking into account multiple

spec/util_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def self.clear_user_home!
180180
'/home/apps\\{1\\}/Thorfile',
181181
'/home/apps\\{1\\}/*.thor',
182182
'/home/apps\\{1\\}/tasks/*.thor',
183-
'/home/apps\\{1\\}/lib/tasks/*.thor'
183+
'/home/apps\\{1\\}/lib/tasks/**/*.thor'
184184
])
185185
end
186186
end

0 commit comments

Comments
 (0)