Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 336 Bytes
def copy_asset(name)
destination = File.join(RAILS_ROOT, "public/javascripts", name)
source = File.join(File.dirname(__FILE__) , "assets", name)
FileUtils.cp_r(source, destination)
end
puts "Copying Javascript assets..."
copy_asset("behaveJS.js")
copy_asset("behaveJS_application.js")
puts "Done. behaveJS is now installed."