capistrano-symfony 1.0.0.rc2 → 1.0.0.rc3
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/README.md +5 -2
- data/capistrano-symfony.gemspec +2 -2
- data/lib/capistrano/symfony/defaults.rb +5 -2
- data/lib/capistrano/tasks/symfony.rake +9 -11
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db042a347e055643161bc1609a6090c36c6d1c3
|
4
|
+
data.tar.gz: bb6c9a06f60e1aaea36d6a8788c6397467338e59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77bfb3117ca3bbf2afd16df5a37786085e553e8e0204e0ad1163dab78f402b15457769601395db1bf43113e4c6cba0c58860e53b14a8337097b0a3d85add6f63
|
7
|
+
data.tar.gz: 5795b4f2927b7d70fbd4b444f0989415a14800a1c2bd9cd456168f8d8eb10046087675268388fd7f0e7c43d14e393fb473c4917e9a1eab5e4ad33f178af0664c
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ It leverages the following capistrano tasks to deploy a Symfony app
|
|
12
12
|
```
|
13
13
|
# Gemfile
|
14
14
|
gem 'capistrano', '~> 3.4'
|
15
|
-
gem 'capistrano-symfony', '~> 1.0.0.
|
15
|
+
gem 'capistrano-symfony', '~> 1.0.0.rc3'
|
16
16
|
```
|
17
17
|
|
18
18
|
## Usage
|
@@ -57,7 +57,7 @@ set :symfony_console_path, "bin/console"
|
|
57
57
|
set :symfony_console_flags, "--no-debug"
|
58
58
|
|
59
59
|
# Remove app_dev.php during deployment, other files in web/ can be specified here
|
60
|
-
set :controllers_to_clear, ["app_*.php"]
|
60
|
+
set :controllers_to_clear, ["app_*.php", "config.php"]
|
61
61
|
|
62
62
|
# asset management
|
63
63
|
set :assets_install_path, "web"
|
@@ -70,6 +70,9 @@ set :linked_dirs, ["var/logs"]
|
|
70
70
|
# Set correct permissions between releases, this is turned off by default
|
71
71
|
set :file_permissions_paths, ["var"]
|
72
72
|
set :permission_method, false
|
73
|
+
|
74
|
+
# Role filtering
|
75
|
+
set :symfony_roles, :all
|
73
76
|
```
|
74
77
|
|
75
78
|
#### Using this plugin with the old Symfony 2 directory structure and SensioDistributionBundle <= 4
|
data/capistrano-symfony.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-symfony"
|
7
|
-
gem.version = '1.0.0.
|
7
|
+
gem.version = '1.0.0.rc3'
|
8
8
|
gem.authors = ["Peter Mitchell"]
|
9
9
|
gem.email = ["pete@peterjmit.com"]
|
10
10
|
gem.description = %q{Symfony specific Capistrano tasks}
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.post_install_message = <<eos
|
22
22
|
WARNING - This gem has switched repositories. This gem is now for the
|
23
|
-
|
23
|
+
capistrano-symfony plugin located at https://github.com/capistrano/symfony.
|
24
24
|
This package behaves differently from the previous, and the release versions
|
25
25
|
have changed.
|
26
26
|
|
@@ -22,7 +22,7 @@ set :cache_path, -> { fetch(:symfony_directory_structure) == 2 ? fetch(:app_path
|
|
22
22
|
set :symfony_console_path, -> { fetch(:symfony_directory_structure) == 2 ? fetch(:app_path) + '/console' : fetch(:bin_path) + "/console" }
|
23
23
|
set :symfony_console_flags, "--no-debug"
|
24
24
|
|
25
|
-
set :controllers_to_clear, ["app_*.php"]
|
25
|
+
set :controllers_to_clear, ["app_*.php", "config.php"]
|
26
26
|
|
27
27
|
# assets
|
28
28
|
set :assets_install_path, fetch(:web_path)
|
@@ -31,7 +31,7 @@ set :assets_install_flags, '--symlink'
|
|
31
31
|
#
|
32
32
|
# Capistrano defaults
|
33
33
|
#
|
34
|
-
set :linked_files, []
|
34
|
+
set :linked_files, -> { [fetch(:app_config_path) + "/parameters.yml"] }
|
35
35
|
set :linked_dirs, -> { [fetch(:log_path)] }
|
36
36
|
|
37
37
|
#
|
@@ -40,3 +40,6 @@ set :linked_dirs, -> { [fetch(:log_path)] }
|
|
40
40
|
set :file_permissions_paths, -> { fetch(:symfony_directory_structure) == 2 ? [fetch(:log_path), fetch(:cache_path)] : [fetch(:var_path)] }
|
41
41
|
# Method used to set permissions (:chmod, :acl, or :chown)
|
42
42
|
set :permission_method, false
|
43
|
+
|
44
|
+
# Role filtering
|
45
|
+
set :symfony_roles, :all
|
@@ -6,7 +6,7 @@ namespace :symfony do
|
|
6
6
|
# ask only runs if argument is not provided
|
7
7
|
ask(:cmd, "cache:clear")
|
8
8
|
command = args[:command] || fetch(:cmd)
|
9
|
-
role = args[:role] || :
|
9
|
+
role = args[:role] || fetch(:symfony_roles)
|
10
10
|
params = args[:params] || ''
|
11
11
|
|
12
12
|
on release_roles(role) do
|
@@ -21,14 +21,14 @@ namespace :symfony do
|
|
21
21
|
namespace :cache do
|
22
22
|
desc "Run app/console cache:clear for the #{fetch(:symfony_env)} environment"
|
23
23
|
task :clear do
|
24
|
-
on release_roles(:
|
24
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
25
25
|
symfony_console "cache:clear"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
29
|
desc "Run app/console cache:warmup for the #{fetch(:symfony_env)} environment"
|
30
30
|
task :warmup do
|
31
|
-
on release_roles(:
|
31
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
32
32
|
symfony_console "cache:warmup"
|
33
33
|
end
|
34
34
|
end
|
@@ -37,7 +37,7 @@ namespace :symfony do
|
|
37
37
|
namespace :assets do
|
38
38
|
desc "Install assets"
|
39
39
|
task :install do
|
40
|
-
on release_roles(:
|
40
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
41
41
|
within release_path do
|
42
42
|
symfony_console "assets:install", fetch(:assets_install_path) + ' ' + fetch(:assets_install_flags)
|
43
43
|
end
|
@@ -47,7 +47,7 @@ namespace :symfony do
|
|
47
47
|
|
48
48
|
desc "Create the cache directory"
|
49
49
|
task :create_cache_dir do
|
50
|
-
on release_roles
|
50
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
51
51
|
within release_path do
|
52
52
|
if test "[ -d #{symfony_cache_path} ]"
|
53
53
|
execute :rm, "-rf", symfony_cache_path
|
@@ -59,17 +59,15 @@ namespace :symfony do
|
|
59
59
|
|
60
60
|
desc "Set user/group permissions on configured paths"
|
61
61
|
task :set_permissions do
|
62
|
-
|
63
|
-
|
64
|
-
invoke "deploy:set_permissions:#{fetch(:permission_method).to_s}"
|
65
|
-
end
|
62
|
+
if fetch(:permission_method) != false
|
63
|
+
invoke "deploy:set_permissions:#{fetch(:permission_method).to_s}"
|
66
64
|
end
|
67
65
|
end
|
68
66
|
|
69
67
|
desc "Clear non production controllers"
|
70
68
|
task :clear_controllers do
|
71
69
|
next unless any? :controllers_to_clear
|
72
|
-
on release_roles
|
70
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
73
71
|
within symfony_web_path do
|
74
72
|
execute :rm, "-f", *fetch(:controllers_to_clear)
|
75
73
|
end
|
@@ -78,7 +76,7 @@ namespace :symfony do
|
|
78
76
|
|
79
77
|
desc "Build the bootstrap file"
|
80
78
|
task :build_bootstrap do
|
81
|
-
on release_roles
|
79
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
82
80
|
within release_path do
|
83
81
|
if fetch(:symfony_directory_structure) == 2
|
84
82
|
execute :php, build_bootstrap_path, fetch(:app_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-symfony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Mitchell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -79,7 +79,7 @@ licenses:
|
|
79
79
|
metadata: {}
|
80
80
|
post_install_message: |2
|
81
81
|
WARNING - This gem has switched repositories. This gem is now for the
|
82
|
-
|
82
|
+
capistrano-symfony plugin located at https://github.com/capistrano/symfony.
|
83
83
|
This package behaves differently from the previous, and the release versions
|
84
84
|
have changed.
|
85
85
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: 1.3.1
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.6.11
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Capistrano Symfony - Easy deployment of Symfony 2 & 3 apps with Ruby over
|