Skip to content

Commit

Permalink
Merge branch 'release/v1.2.2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnson-xx committed Oct 11, 2012
2 parents eab248b + 63a27b6 commit 8467d25
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.2.1 1.2.2
14 changes: 11 additions & 3 deletions lib/ash/base.rb
Expand Up @@ -145,7 +145,7 @@
directories = (local_releases - local_releases.last(count)).map { |release| directories = (local_releases - local_releases.last(count)).map { |release|
File.join(releases_path, release) }.join(" ") File.join(releases_path, release) }.join(" ")


directories.each do |dir| directories.split(" ").each do |dir|
set_perms_dirs(dir) set_perms_dirs(dir)
set_perms_files(dir) set_perms_files(dir)
end end
Expand Down Expand Up @@ -178,8 +178,16 @@


desc 'Copy distribution htaccess file' desc 'Copy distribution htaccess file'
task :htaccess, :roles => :web do task :htaccess, :roles => :web do
run "mv #{latest_release}/htaccess.dist #{latest_release}/.htaccess" if case true
remote_file_exists?("#{latest_release}/htaccess.dist") when remote_file_exists?("#{latest_release}/htaccess.#{stage}.dist")
run "mv #{latest_release}/htaccess.#{stage}.dist #{latest_release}/.htaccess"
when remote_file_exists?("#{latest_release}/htaccess.#{stage}")
run "mv #{latest_release}/htaccess.#{stage} #{latest_release}/.htaccess"
when remote_file_exists?("#{latest_release}/htaccess.dist")
run "mv #{latest_release}/htaccess.dist #{latest_release}/.htaccess"
else
logger.important "Failed to move the .htaccess file in #{latest_release} because an unknown pattern was used"
end
end end
end end


Expand Down
12 changes: 12 additions & 0 deletions lib/ash/magento.rb
Expand Up @@ -127,6 +127,18 @@
break if stream == :err break if stream == :err
end end
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 end


# -------------------------------------------- # --------------------------------------------
Expand Down

0 comments on commit 8467d25

Please sign in to comment.