lib/rake/contrib/ftptools.rb in rake-10.0.0 vs lib/rake/contrib/ftptools.rb in rake-10.0.1
- old
+ new
@@ -3,10 +3,11 @@
# This file is still under development and is not released for general
# use.
require 'date'
require 'net/ftp'
+require 'rake/file_list'
module Rake # :nodoc:
####################################################################
# <b>Note:</b> <em> Not released for general use.</em>
@@ -125,11 +126,10 @@
end
# Upload all files matching +wildcard+ to the uploader's root
# path.
def upload_files(wildcard)
- fail "OUCH"
- Rake.glob(wildcard).each do |fn|
+ FileList.glob(wildcard).each do |fn|
upload(fn)
end
end
# Close the uploader.