private Method

Sys.for_matching_files(wildcard, dest_dir) { |fn, dest_file| ... }

There's no documentation for this item.

Source Code

# File rake/contrib/sys.rb, line 192
def for_matching_files(wildcard, dest_dir)
  Dir[wildcard].each do |fn|
    dest_file = File.join(dest_dir, fn)
    parent = File.dirname(dest_file)
    makedirs(parent) if ! File.directory?(parent)
    yield(fn, dest_file)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.