Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 571 Bytes
# Workaround a problem with script/plugin and http-based repos.
# See
Dir.chdir(Dir.getwd.sub(/vendor.*/, '')) do
def copy_files(source_path, destination_path, plugin_root)
rails_root = ( defined?( RAILS_ROOT)) ? RAILS_ROOT : Rails.root
source, destination = File.join(File.expand_path(plugin_root), source_path), File.join( rails_root, destination_path)
FileUtils.mkdir(destination) unless File.exist?(destination)
FileUtils.cp_r(source, destination)
#copy_files("/public/.", "/public", File.dirname(__FILE__))
Jump to Line
Something went wrong with that request. Please try again.