This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/vendor/plugins/jrails/tasks/jrails.rake

20 lines
571 B
Ruby
Raw Normal View History

namespace :jrails do
namespace :update do
desc "Copies the jQuery and jRails javascripts to public/javascripts"
task :javascripts do
puts "Copying files..."
project_dir = RAILS_ROOT + '/public/javascripts/'
scripts = Dir[File.join(File.dirname(__FILE__), '..') + '/javascripts/*.js']
FileUtils.cp(scripts, project_dir)
puts "files copied successfully."
end
end
namespace :install do
desc "Installs the jQuery and jRails javascripts to public/javascripts"
task :javascripts do
Rake::Task['jrails:update:javascripts'].invoke
end
end
end