Module: RailsExt
- Defined in:
- lib/rails_ext/micelaneous/create_public_symlinks.rb
Class Method Summary collapse
Class Method Details
.create_public_symlinks!(root = RAILS_ROOT) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/rails_ext/micelaneous/create_public_symlinks.rb', line 3 def create_public_symlinks! root = RAILS_ROOT public_rails_ext_path = File. "#{File.dirname __FILE__}/../../../public/rails_ext" raise "File #{public_rails_ext_path} don't exist!" unless File.exist? public_rails_ext_path public_rails_path = File. "#{root}/public/rails_ext" system "ln -nfs #{public_rails_ext_path} #{public_rails_path}" end |