diff options
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 |