kstrano 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kstrano_symfony2.rb +13 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79690ef5b11ab92345da40f57fc1ceea278552ad
|
4
|
+
data.tar.gz: 1448787e0108793f895a20177bc627b7832a5fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba2fb02dba53345b12402fe36d09e44e1e21651eddd2b0522c7d5ccdd0acb392d653b0ba40bc783dd3a1e6b1f791444ff5287ef8c39a67655a61cbd29871b0d4
|
7
|
+
data.tar.gz: c1fc1db2d1cbb8c8b44081a02e381fb8c4afab90270d0cbb1f007d904fd1e254441b49e24b39f7f6816be07288470906661befaa6e7c43b320f227d0b40f592d
|
data/lib/kstrano_symfony2.rb
CHANGED
@@ -151,7 +151,19 @@ module KStrano
|
|
151
151
|
before "deploy:finalize_update", "kuma:apc:prepare_clear"
|
152
152
|
after "deploy:finalize_update", "kuma:apc:clear", "kuma:fpm:graceful_restart"
|
153
153
|
after "deploy:create_symlink", "kuma:apc:clear", "kuma:fpm:graceful_restart"
|
154
|
-
|
154
|
+
|
155
|
+
before "deploy:create_symlink", "symfony:cache:clear"
|
156
|
+
|
157
|
+
namespace :symfony do
|
158
|
+
namespace :cache do
|
159
|
+
desc "Cache clear"
|
160
|
+
task :clear, :roles => :app, :except => { :no_release => true } do
|
161
|
+
run "#{try_sudo} sh -c 'cd #{latest_release} && rm -Rf #{latest_release}/#{cache_path}/*'"
|
162
|
+
run "#{try_sudo} chmod -R g+w #{latest_release}/#{cache_path}"
|
163
|
+
capifony_puts_ok
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
155
167
|
|
156
168
|
end
|
157
169
|
end
|