Sha256: 14b914fff922570a05ce2d62ed3af81eac00555704ebdb6bd78080a5bdb4b9a3
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
module Crystal module HTTP class << self inject :environment => :environment, :config => :config def ensure_public_symlink symlink_name, plugin_public_folder plugin_public_folder = File.expand_path(plugin_public_folder) File.must.exist(plugin_public_folder) environment.must_be.defined if environment.config.static? and !environment.config.test? symlink_path = "#{config.root!}/public/#{symlink_name}" File.symlink(plugin_public_folder, symlink_path) unless File.exist? symlink_path end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystal_ext-0.0.11 | lib/crystal/http/http.rb |