kstrano 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kstrano_symfony2.rb +13 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdb7bc8858718bbbbe114204da2129bf794b1586
4
- data.tar.gz: 5f978f4f8bf56fbb80ada5ce84723816226cf554
3
+ metadata.gz: 79690ef5b11ab92345da40f57fc1ceea278552ad
4
+ data.tar.gz: 1448787e0108793f895a20177bc627b7832a5fea
5
5
  SHA512:
6
- metadata.gz: 5c3201159e62fd90fdd7ed00bfa8c50b9ceca168edb54d810e2cdd13d8b716ce38291c9e2bee97f68a8c3ce42c83db5bee1043fbb48bff9aabe0afa6316e74b8
7
- data.tar.gz: 630c4bdb4a2093751d7f42f1af8026e915662e1b079f9afe8cd8bc36a41025c99bdc0178e54ecc0bc7c835c04099e616a1b4b5f530b862db0ffb1ff9a43c90cf
6
+ metadata.gz: ba2fb02dba53345b12402fe36d09e44e1e21651eddd2b0522c7d5ccdd0acb392d653b0ba40bc783dd3a1e6b1f791444ff5287ef8c39a67655a61cbd29871b0d4
7
+ data.tar.gz: c1fc1db2d1cbb8c8b44081a02e381fb8c4afab90270d0cbb1f007d904fd1e254441b49e24b39f7f6816be07288470906661befaa6e7c43b320f227d0b40f592d
@@ -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
- before "symfony:cache:warmup", "symfony:cache:clear"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kstrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kunstmaan