Created
September 17, 2009 14:03
-
-
Save richievos/188504 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sorry if this is confusing, but it's a rake task with an argument | |
task :setup_custom_symlinks, [:root_path] do |t, args| | |
require 'file_utils' | |
root_path = args.root_path | |
libraries = %w(restfulX ...) | |
vendor_dir = 'vendor/plugins' | |
FileUtils.mkdir_p vendor_dir | |
libraries.each do |library| | |
FileUtils.ln_s(File.join(root_path, library), File.join(vendor_dir, library) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment