diff options
author | David Cabo <david@calibea.com> | 2011-07-19 15:45:06 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-07-19 15:45:06 +0200 |
commit | bf3c5bca65040a617dbed55b523978d75ed118f1 (patch) | |
tree | 8ccc16b5ef8b94f68607d7d70f6fc2f143c627a7 /uninstall.rb | |
parent | b6f4b8045a6bfa240260482113c05f470f674351 (diff) |
Improved handling of static assets in themes:
- Symbolic link created automatically during install (and removed when uninstall)
- As an example, replaced the default logo with a new image
Diffstat (limited to 'uninstall.rb')
-rw-r--r-- | uninstall.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uninstall.rb b/uninstall.rb index 9738333..8598d7e 100644 --- a/uninstall.rb +++ b/uninstall.rb @@ -1 +1,8 @@ # Uninstall hook code here + +main_app_path = File.join(RAILS_ROOT, 'public', 'alavetelitheme') +if File.exists?(main_app_path) && File.symlink?(main_app_path) + print "Deleting symbolink link at #{main_app_path}... " + File.delete(main_app_path) + puts "done" +end
\ No newline at end of file |