lib/rake/rake_module.rb in rake-0.9.3.beta.2 vs lib/rake/rake_module.rb in rake-0.9.3.beta.3

- old
+ new

@@ -23,9 +23,17 @@ # Load a rakefile. def load_rakefile(path) load(path) end + # Add files to the rakelib list + def add_rakelib(*files) + application.options.rakelib ||= [] + files.each do |file| + application.options.rakelib << file + end + end + # Get a sorted list of files matching the pattern. This method # should be prefered to Dir[pattern] and Dir.glob[pattern] because # the files returned are guaranteed to be sorted. def glob(pattern, *args) Dir.glob(pattern, *args).sort