Skip to content

Commit

Permalink
Merge pull request #747 from Mitsuru53/Mitsuru53/load-dir-under-tasks
Browse files Browse the repository at this point in the history
Loaded the directory under tasks.
  • Loading branch information
rafaelfranca authored Jun 1, 2021
2 parents 0d3a1dd + 6e86ff9 commit ce18deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/thor/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def thor_root_glob
#
def globs_for(path)
path = escape_globs(path)
["#{path}/Thorfile", "#{path}/*.thor", "#{path}/tasks/*.thor", "#{path}/lib/tasks/*.thor"]
["#{path}/Thorfile", "#{path}/*.thor", "#{path}/tasks/*.thor", "#{path}/lib/tasks/**/*.thor"]
end

# Return the path to the ruby interpreter taking into account multiple
Expand Down
2 changes: 1 addition & 1 deletion spec/util_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def self.clear_user_home!
'/home/apps\\{1\\}/Thorfile',
'/home/apps\\{1\\}/*.thor',
'/home/apps\\{1\\}/tasks/*.thor',
'/home/apps\\{1\\}/lib/tasks/*.thor'
'/home/apps\\{1\\}/lib/tasks/**/*.thor'
])
end
end
Expand Down

0 comments on commit ce18deb

Please sign in to comment.