[Radiant] Standard Rake Install/Uninstall Tasks for Extensions

Mario T. Lanza mlanza at comcast.net
Fri Jan 11 19:07:06 CST 2008


> 
> task :install => [:migrate, :update]
> 
> task :uninstall => :cleanup do
>   ENV['VERSION'] = 0
>   migrate
> end

Additionally, the cleanup should handle removing the files copied to 
public.  If the files are indeed copied and not moved, then 
programmatically reversing this should be a cinch.  Use the original 
files in the extension directory to locate their public counterpart and 
delete them if the size and timestamp match.
-- 
Posted via http://www.ruby-forum.com/.



More information about the Radiant mailing list