diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-15 21:59:37 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-15 21:59:37 +0000 |
commit | 9c66bad9f3d522d50d4a45ef8a3a92abbf93229f (patch) | |
tree | 8fc1ae219e41bdd711442b1d35149da4f45dfa8a /lib/rake/file_utils_ext.rb | |
parent | bfc95c6e1639edc909338ef4d20d990caf6f630e (diff) | |
download | ruby-9c66bad9f3d522d50d4a45ef8a3a92abbf93229f.tar.gz |
* lib/rake*: Updated to rake 0.9.3
* test/rake*: ditto
* bin/rake: ditto
* NEWS: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/file_utils_ext.rb')
-rw-r--r-- | lib/rake/file_utils_ext.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb index 557420df80..386af441d8 100644 --- a/lib/rake/file_utils_ext.rb +++ b/lib/rake/file_utils_ext.rb @@ -21,12 +21,13 @@ module Rake $fileutils_verbose = true $fileutils_nowrite = false - FileUtils::OPT_TABLE.each do |name, opts| + FileUtils.commands.each do |name| + opts = FileUtils.options_of name default_options = [] - if opts.include?(:verbose) || opts.include?("verbose") + if opts.include?("verbose") default_options << ':verbose => FileUtilsExt.verbose_flag' end - if opts.include?(:noop) || opts.include?("noop") + if opts.include?("noop") default_options << ':noop => FileUtilsExt.nowrite_flag' end |