Permalink
Browse files

adds additional utility tasks for magento deployments

  • Loading branch information...
1 parent e7acebb commit 576e1fa2456ebe48326a57cafd96f3f17059a9d5 @jjohnson-xx jjohnson-xx committed Oct 11, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/ash/magento.rb
View
@@ -127,6 +127,18 @@
break if stream == :err
end
end
+
+ desc "Clear the Magento Cache"
+ task :cc, :roles => [:web, :app], :except => { :no_release => true } do
+ magento.purge_cache
+ sudo "rm -rf #{shared_path}/var/full_page_cache/*"
+ end
+
+ desc "Enable display errors"
+ task :enable_dev, :roles => :web, :except => { :no_release => true } do
+ run "perl -pi -e 's/#ini_set/ini_set/g' #{latest_release}/index.php"
+ end
+
end
# --------------------------------------------

0 comments on commit 576e1fa

Please sign in to comment.