diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-04 13:54:57 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 13:54:57 +0000 |
commit | 40258c0219978fd3998c22962fc55d6fd44cc946 (patch) | |
tree | be2c218470f87dfddb37d7e92d58d2718ac16b43 | |
parent | 4e1ab212c1286730963c72cd11cf87dddd3b3cab (diff) |
No need to create or destroy symlinks now
Handled by asset pipeline.
-rw-r--r-- | install.rb | 16 | ||||
-rw-r--r-- | uninstall.rb | 7 |
2 files changed, 0 insertions, 23 deletions
@@ -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 diff --git a/uninstall.rb b/uninstall.rb index 871647c..9738333 100644 --- a/uninstall.rb +++ b/uninstall.rb @@ -1,8 +1 @@ # Uninstall hook code here - -main_app_path = Rails.root.join('public', 'alavetelitheme') -if File.exists?(main_app_path) && File.symlink?(main_app_path) - print "Deleting symbolic link at #{main_app_path}... " - File.delete(main_app_path) - puts "done" -end
\ No newline at end of file |