Sha256: 3f1e680980bea82ec8750f002d306e191d0383f53aec206fbafaf7e0720f547d

Contents?: true

Size: 443 Bytes

Versions: 30

Compression:

Stored size: 443 Bytes

Contents

module RailsExt
  class << self
    def create_public_symlinks! root = RAILS_ROOT
      public_rails_ext_path = File.expand_path "#{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.expand_path "#{root}/public/rails_ext"
      
      system "ln -nfs #{public_rails_ext_path} #{public_rails_path}"
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
crystal-ext-0.0.3 lib/rails_ext/micelaneous/create_public_symlinks.rb
crystal-ext-0.0.2 lib/rails_ext/micelaneous/create_public_symlinks.rb
crystal-ext-0.0.1 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.29 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.28 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.27 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.25 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.24 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.23 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.22 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.21 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.20 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.19 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.18 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.17 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.16 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.15 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.14 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.13 lib/rails_ext/micelaneous/create_public_symlinks.rb
rails-ext-0.3.12 lib/rails_ext/micelaneous/create_public_symlinks.rb