alcapon 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/capezit +1 -1
- data/lib/ezpublish4.rb +1 -1
- data/lib/ezpublish5/ezpublish.rb +6 -1
- data/lib/ezpublish5.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
data.tar.gz:
|
|
4
|
-
metadata.gz:
|
|
3
|
+
data.tar.gz: cf74a7f984cbcaabc3f22d604100d3cd07c46f0d
|
|
4
|
+
metadata.gz: 2cb79916fad8e2ac632f6fc5735d5d60562121a5
|
|
5
5
|
SHA512:
|
|
6
|
-
data.tar.gz:
|
|
7
|
-
metadata.gz:
|
|
6
|
+
data.tar.gz: 5c9d7ef29f3ba7a255b2f7809c9de742d67568c07b27a2c03f89cf81e7a7703948f182546c4d8a9c32443d207ecb257eaebe9ae954fb24ebadfdb301635b8294
|
|
7
|
+
metadata.gz: f4f27149ec74f105cd57ce1a87e0c5011b4d94135054f525546e3976506c426697e93b32ad2fbb7d588466fbc3725981f0dd50550d999f8fade696ba12550a0a
|
data/bin/capezit
CHANGED
data/lib/ezpublish4.rb
CHANGED
|
@@ -26,7 +26,7 @@ namespace :ezpublish do
|
|
|
26
26
|
puts( "\n--> Clearing caches #{'with --purge'.red if cache_purge}" )
|
|
27
27
|
cache_list.each { |cache_tag|
|
|
28
28
|
print_dotted( "#{cache_tag}" )
|
|
29
|
-
capture "cd #{
|
|
29
|
+
capture "cd #{latest_release}/#{ezp_legacy_path} && sudo -u #{fetch(:php_user,user)} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
|
|
30
30
|
capez_puts_done
|
|
31
31
|
}
|
|
32
32
|
end
|
data/lib/ezpublish5/ezpublish.rb
CHANGED
|
@@ -10,11 +10,16 @@ namespace :ezpublish do
|
|
|
10
10
|
# TODO : make it ezp5 aware
|
|
11
11
|
task :clear, :roles => :web, :only => { :primary => true } do
|
|
12
12
|
puts( "\n--> Clearing caches #{'with --purge'.red if cache_purge}" )
|
|
13
|
+
sudo_user = fetch(:php_user,user)
|
|
14
|
+
if sudo_user == 'root'
|
|
15
|
+
puts( "Sorry, refusing to run php scripts as root since eZ Publish won't let us do that".red )
|
|
16
|
+
else
|
|
13
17
|
cache_list.each { |cache_tag|
|
|
14
18
|
print_dotted( "#{cache_tag}" )
|
|
15
|
-
capture "cd #{
|
|
19
|
+
capture "cd #{latest_release}/#{ezp_legacy_path} && sudo -u #{sudo_user} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
|
|
16
20
|
capez_puts_done
|
|
17
21
|
}
|
|
22
|
+
end
|
|
18
23
|
end
|
|
19
24
|
end
|
|
20
25
|
|
data/lib/ezpublish5.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alcapon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arnaud Lafon
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-22 00:00:00 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|