alcapon 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +6 -0
- data/bin/capezit +1 -1
- data/lib/capez.rb +5 -7
- data/lib/ezpublish4.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: 4375e3cc5ebf8dcab9094ad15ebd41a49dfc25639056827f6fcf821cd307867824cf822b7c122c24bef452fafbc58a8c4bd1f569b0306ff94eec011a4eae8d38
|
4
|
+
metadata.gz: f20a5cad5a195de62da33b9f91f773c5f62f9f970bf8f26692b7f59a24d37d20cfda78b64c50a6cb8fa977cda6d6eadf52194f5831b471b9554df034afa7df35
|
5
5
|
SHA1:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: 7629eeca6cc423a2b7be1355e31df41e6d599a82
|
7
|
+
metadata.gz: 1185f76ba259f58acaaba706b6e4e528d2130431
|
data/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2013 Arnaud Lafon, http://github.com/alafon
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
data/README.md
CHANGED
@@ -8,10 +8,16 @@ IMPORTANT: this package is currently under development, please consider testing
|
|
8
8
|
it on a preproduction environment before going further. Please also do read the
|
9
9
|
"Known bugs" section carefully.
|
10
10
|
|
11
|
+
CAPISTRANO dependency : we recommand not to use Capistrano >= 2.15 which for some
|
12
|
+
reason broke something (see #7)
|
13
|
+
|
11
14
|
## Changelog
|
12
15
|
|
13
16
|
### 0.4.x
|
14
17
|
|
18
|
+
- removed in 0.4.15 : the 'ezpublish:var:link' task does not call `chown`
|
19
|
+
anymore since we must not alter the permissions in shared ressources. They
|
20
|
+
must be controlled by ezpublish ONLY
|
15
21
|
- added in 0.4.1 : downloaded files are hashed so that they can be downloaded
|
16
22
|
somewhere there's no eZ Publish installed
|
17
23
|
- added eZ Publish 5.x support for ezpublish_legacy. This means that version
|
data/bin/capezit
CHANGED
data/lib/capez.rb
CHANGED
@@ -271,7 +271,7 @@ namespace :ezpublish do
|
|
271
271
|
capez_puts_done
|
272
272
|
}
|
273
273
|
run( "chmod -R g+w #{shared_path}/var")
|
274
|
-
try_sudo( "
|
274
|
+
try_sudo( "chgrp -R #{fetch(:webserver_group,:user)} #{shared_path}/var")
|
275
275
|
end
|
276
276
|
|
277
277
|
|
@@ -288,7 +288,7 @@ namespace :ezpublish do
|
|
288
288
|
print_dotted( "#{fp}" )
|
289
289
|
run( "mkdir -p #{latest_release}/#{fp}")
|
290
290
|
run( "chmod -R g+wx #{latest_release}/#{fp}" )
|
291
|
-
try_sudo( "chown -R #{fetch(:
|
291
|
+
try_sudo( "chown -R #{fetch(:webserver_user,:user)}:#{fetch(:webserver_group,:user)} #{latest_release}/#{fp}" )
|
292
292
|
capez_puts_done
|
293
293
|
}
|
294
294
|
end
|
@@ -302,7 +302,7 @@ namespace :ezpublish do
|
|
302
302
|
|
303
303
|
# makes sure the webserver can write into var/
|
304
304
|
run( "chmod -R g+w #{latest_release}/" + ezp_legacy_path( "var" ) )
|
305
|
-
try_sudo( "chown -R #{fetch(:webserver_user
|
305
|
+
try_sudo( "chown -R #{fetch(:webserver_user,:user)}:#{fetch(:webserver_group,:user)} #{latest_release}/" + ezp_legacy_path( "var" ) )
|
306
306
|
|
307
307
|
# needed even if we just want to run 'bin/php/ezpgenerateautoloads.php' with --extension
|
308
308
|
# autoload seems to be mandatory for "old" version such as 4.0, 4.1, ...
|
@@ -310,7 +310,7 @@ namespace :ezpublish do
|
|
310
310
|
autoload_path = File.join( latest_release, ezp_legacy_path( 'autoload' ) )
|
311
311
|
run( "if [ ! -d #{autoload_path} ]; then mkdir -p #{autoload_path}; fi;" )
|
312
312
|
capez_puts_done
|
313
|
-
try_sudo( "chown -R #{fetch(:webserver_user
|
313
|
+
try_sudo( "chown -R #{fetch(:webserver_user,:user)}:#{fetch(:webserver_group,:user)} #{autoload_path}" )
|
314
314
|
end
|
315
315
|
|
316
316
|
desc <<-DESC
|
@@ -326,12 +326,10 @@ namespace :ezpublish do
|
|
326
326
|
storage_directories.each{ |sd|
|
327
327
|
print_dotted( "var/#{sd}/storage" )
|
328
328
|
try_sudo( "ln -s #{shared_path}/var/#{sd}/storage #{latest_release}/" + ezp_legacy_path( "var/#{sd}/storage" ), :as => webserver_user )
|
329
|
-
#run( "chmod -h g+w #{latest_release}/var/#{sd}/storage")
|
330
329
|
capez_puts_done
|
331
330
|
}
|
332
331
|
|
333
332
|
try_sudo( "chmod -R g+w #{latest_release}/" + ezp_legacy_path( "var" ) )
|
334
|
-
try_sudo( "chown -R #{fetch(:webserver_user,user)}:#{fetch(:webserver_group,user)} #{shared_path}/var")
|
335
333
|
end
|
336
334
|
|
337
335
|
desc <<-DESC
|
@@ -393,7 +391,7 @@ namespace :ezpublish do
|
|
393
391
|
puts( "\n--> eZ Publish autoloads " )
|
394
392
|
autoload_list.each { |autoload|
|
395
393
|
print_dotted( "#{autoload}" )
|
396
|
-
|
394
|
+
run( "cd #{latest_release}/#{ezp_legacy_path} && sudo -u #{fetch(:php_user,:user)} php bin/php/ezpgenerateautoloads.php --#{autoload}" )
|
397
395
|
capez_puts_done
|
398
396
|
}
|
399
397
|
end
|
data/lib/ezpublish4.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
puts "Running AlCapON for eZ Publish 4"
|
1
|
+
puts "Running #{'AlCapON'.green} for #{'eZ Publish 4'.red}"
|
2
2
|
|
3
3
|
set :ezp_legacy, ""
|
4
4
|
|
@@ -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
|
-
|
29
|
+
run "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
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lafon
|
@@ -9,16 +9,16 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-13 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
16
|
prerelease: false
|
17
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.14.0
|
22
22
|
type: :runtime
|
23
23
|
version_requirements: *id001
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -51,9 +51,9 @@ files:
|
|
51
51
|
- lib/utils.rb
|
52
52
|
- README.md
|
53
53
|
- LICENSE.md
|
54
|
-
homepage: http://alafon.github.
|
55
|
-
licenses:
|
56
|
-
|
54
|
+
homepage: http://alafon.github.io/alcapon/
|
55
|
+
licenses:
|
56
|
+
- MIT
|
57
57
|
metadata: {}
|
58
58
|
|
59
59
|
post_install_message:
|