Skip to content

Instantly share code, notes, and snippets.

@richievos
Created September 17, 2009 14:03
Show Gist options
  • Save richievos/188504 to your computer and use it in GitHub Desktop.
Save richievos/188504 to your computer and use it in GitHub Desktop.
# 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