collab/vendor/plugins/jrails/bin/jrails
2010-03-15 11:47:32 -04:00

31 lines
657 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'rubygems'
require 'rake'
RAILS_ROOT = Dir.pwd
rakeapp = Rake.application
fname =File.join(File.dirname(__FILE__), '..', 'tasks', 'jrails.rake')
load fname
task :help do
puts "jrails [command]\n\n"
rakeapp.options.show_task_pattern = Regexp.new('^[hius]')
rakeapp.display_tasks_and_comments
end
desc 'Installs the jQuery and jRails javascripts to public/javascripts'
task :install do
Rake::Task['jrails:js:install'].invoke
end
desc 'Remove the prototype / script.aculo.us javascript files'
task :scrub do
Rake::Task['jrails:js:scrub'].invoke
end
rakeapp.init("jrails")
task :default => [:help]
rakeapp.top_level