From 40258c0219978fd3998c22962fc55d6fd44cc946 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 4 Dec 2013 13:54:57 +0000 Subject: No need to create or destroy symlinks now Handled by asset pipeline. --- install.rb | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'install.rb') diff --git a/install.rb b/install.rb index 4aee9f7..f7732d3 100644 --- a/install.rb +++ b/install.rb @@ -1,17 +1 @@ # Install hook code here - -plugin_path = File.expand_path(File.join(File.dirname(__FILE__), "public")) -main_app_path = Rails.root.join('public', 'alavetelitheme') - -# If the symlink to be created exists, warn the user and do nothing -if File.exists?(main_app_path) - puts "WARNING: #{main_app_path} already exists, the symbolic link won't be created" -else # Create symlink - begin - print "Creating symbolic link from #{main_app_path} to #{plugin_path}... " - File.symlink(plugin_path, main_app_path) - puts "done" - rescue NotImplementedError - puts "failed: symbolic links not supported" - end -end -- cgit v1.2.3