Sha256: 71c5ce5adf16a725439076e0eb99b539f159c5012ca8fdefc159894607082dbd
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
namespace :lipsiadmin do namespace :update do desc "Update your javascripts from your current lipsiadmin install" task :javascripts do Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/javascripts/*.js')].each do |js| puts "Coping #{File.basename(js)} ... DONE" FileUtils.cp(js, RAILS_ROOT + '/public/javascripts/') end end desc "Updated the current rails locale and backend locale" task :locales do Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/config/locales/rails/*.yml')].each do |yml| puts "Coping config/locales/rails/#{File.basename(yml)} ... DONE" FileUtils.cp(yml, RAILS_ROOT + '/config/locales/rails') end Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/config/locales/backend/*.yml')].each do |yml| puts "Coping config/locales/backend/#{File.basename(yml)} ... DONE" FileUtils.cp(yml, RAILS_ROOT + '/config/locales/backend') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lipsiadmin-3.3.2 | tasks/lipsiadmin_tasks.rake |
lipsiadmin-3.3.3 | tasks/lipsiadmin_tasks.rake |
lipsiadmin-3.3.4 | tasks/lipsiadmin_tasks.rake |