Commit 685978c230818aa8c761ae929885cbf5c83bca4f

add install task for rakefile

Commit diff

tasks/tinymce_tasks.rake

 
1# desc "Explaining what the task does"
2# task :template do
3# # Task goes here
4# end
1TINYMCE_PATH = File.join(RAILS_ROOT, "vendor/plugins/tinymce")
2
3namespace :tinymce do
4
5 desc 'Copy all files need for tinymce'
6 task :install do
7 js_path = File.join(TINYMCE_PATH, "javascripts/")
8 system("cp -r #{js_path}/tinymce/jscripts/* #{RAILS_ROOT}/public/javascripts/")
9 puts "Tiny MCE Files have been installed successfully"
10 end
11
12end
toggle raw diff