capistrano-symfony 0.4.0 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/README.md +81 -60
- data/capistrano-symfony.gemspec +5 -5
- data/lib/capistrano/dsl/symfony.rb +57 -0
- data/lib/capistrano/symfony.rb +5 -1
- data/lib/capistrano/symfony/defaults.rb +31 -42
- data/lib/capistrano/tasks/symfony.rake +15 -22
- metadata +13 -12
- data/lib/capistrano/symfony/dsl.rb +0 -1
- data/lib/capistrano/symfony/dsl/paths.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd325f7ad038221c25a713f886371589c41f67f
|
4
|
+
data.tar.gz: 9f8eca0db6a8025bdf35fd52bd8e8e2a34f965de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ec6cbc57993dd8fa3b95be1064868350e9fe89a1ce7082b89da03100fd37c6798e3664d4f785acba6cac5336c90911cdab5eaae14fe3877db0a2cfe651167c7
|
7
|
+
data.tar.gz: 603679bd05fd0b8e59de9c589fd4626c43019d428147effba011ae030955b0e6d7a7114929473531e0fc4ef762dd6b790a6a285d41162b0c2c3344853d4e4193
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Capistrano Symfony 1.x Changelog
|
2
|
+
|
3
|
+
|
4
|
+
## `1.0.0.rc1`
|
5
|
+
|
6
|
+
https://github.com/capistrano/symfony/compare/0.4.0...1.0.0.rc1
|
7
|
+
|
8
|
+
* Use file permissions gem v1
|
9
|
+
* Symfony 3 directory structure is on by default
|
10
|
+
* Remove `use_set_permission` variable
|
11
|
+
* Remove `web/uploads` as a default linked directory
|
12
|
+
* Remove support for Assetic (see: https://github.com/symfony/symfony-standard/pull/860)
|
13
|
+
* Support SensioLabsDistributionBundle 5 (#49)
|
14
|
+
* Support Symfony 3 directory structure (#31)
|
15
|
+
* `build_bootstrap_path` is now a DSL method
|
16
|
+
* `symfony_console` is now a DSL method (use instead of `invoke "symfony:console"`)
|
17
|
+
* Paths DSL file has been moved to `lib/capistrano/dsl/symfony.rb`
|
18
|
+
* Deprecated `symfony:command` task has been removed
|
19
|
+
* `webserver_user` variable has been removed (#40)
|
20
|
+
* Various typo fixes
|
21
|
+
|
22
|
+
### Contributors
|
23
|
+
|
24
|
+
Thanks to everyone who has filed an issue or submitted a fix
|
25
|
+
|
26
|
+
* @kriswallsmith
|
27
|
+
* @zaerl
|
28
|
+
* @sandermarechal
|
29
|
+
* @pborreli
|
30
|
+
* @wideawake
|
31
|
+
* @issei-m
|
32
|
+
* alafon
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Capistrano::Symfony
|
2
2
|
|
3
|
-
Symfony 2 (standard edition) specific tasks for Capistrano v3
|
4
|
-
(inspired by [capifony][2])
|
3
|
+
Symfony 2 (standard edition) specific tasks for Capistrano v3 (inspired by [capifony][2]).
|
5
4
|
|
6
5
|
It leverages the following capistrano tasks to deploy a Symfony app
|
7
6
|
|
@@ -12,8 +11,8 @@ It leverages the following capistrano tasks to deploy a Symfony app
|
|
12
11
|
|
13
12
|
```
|
14
13
|
# Gemfile
|
15
|
-
gem 'capistrano', '~> 3.
|
16
|
-
gem 'capistrano-symfony', '~> 0.
|
14
|
+
gem 'capistrano', '~> 3.4'
|
15
|
+
gem 'capistrano-symfony', '~> 1.0.0.rc1'
|
17
16
|
```
|
18
17
|
|
19
18
|
## Usage
|
@@ -25,76 +24,74 @@ Require capistrano-symfony in your cap file
|
|
25
24
|
require 'capistrano/symfony'
|
26
25
|
```
|
27
26
|
|
27
|
+
|
28
28
|
### Settings
|
29
29
|
|
30
|
-
|
30
|
+
If you are using an un-modified symfony-standard edition, version 3 then you do not need to change/add anything to your `deploy.rb` other than what is required from Capistrano.
|
31
|
+
|
32
|
+
We do however expose the following settings (shown with default evaluated values) that can be modified to suit your project. Please refer to `lib/capistrano/symfony/defaults.rb` to see exactly how the defaults are set up.
|
33
|
+
|
31
34
|
|
32
35
|
```ruby
|
33
|
-
# Symfony environment
|
36
|
+
# Symfony console commands will use this environment for execution
|
34
37
|
set :symfony_env, "prod"
|
35
38
|
|
36
|
-
#
|
37
|
-
set :
|
38
|
-
|
39
|
-
|
40
|
-
set :web_path, "web"
|
39
|
+
# Set this to 2 for the old directory structure
|
40
|
+
set :symfony_directory_structure, 3
|
41
|
+
# Set this to 4 if using the older SensioDistributionBundle
|
42
|
+
set :sensio_distribution_version, 5
|
41
43
|
|
42
|
-
#
|
43
|
-
set :
|
44
|
+
# symfony-standard edition directories
|
45
|
+
set :app_path, "app"
|
46
|
+
set :web_path, "web"
|
47
|
+
set :var_path, "var"
|
48
|
+
set :bin_path, "bin"
|
44
49
|
|
45
|
-
#
|
46
|
-
|
50
|
+
# The next 3 settings are lazily evaluated from the above values, so take care
|
51
|
+
# when modifying them
|
52
|
+
set :app_config_path, "app/config"
|
53
|
+
set :log_path, "var/logs"
|
54
|
+
set :cache_path, "var/cache"
|
47
55
|
|
48
|
-
|
49
|
-
set :
|
56
|
+
set :symfony_console_path, "bin/console"
|
57
|
+
set :symfony_console_flags, "--no-debug"
|
50
58
|
|
51
|
-
#
|
59
|
+
# Remove app_dev.php during deployment, other files in web/ can be specified here
|
52
60
|
set :controllers_to_clear, ["app_*.php"]
|
53
61
|
|
54
|
-
#
|
55
|
-
set :
|
56
|
-
|
57
|
-
# Dirs that need to remain the same between deploys (shared dirs)
|
58
|
-
set :linked_dirs, [fetch(:log_path), fetch(:web_path) + "/uploads"]
|
59
|
-
|
60
|
-
# Dirs that need to be writable by the HTTP Server (i.e. cache, log dirs)
|
61
|
-
set :file_permissions_paths, [fetch(:log_path), fetch(:cache_path)]
|
62
|
-
|
63
|
-
# Name used by the Web Server (i.e. www-data for Apache)
|
64
|
-
set :webserver_user, "www-data"
|
65
|
-
|
66
|
-
# Method used to set permissions (:chmod, :acl, or :chown)
|
67
|
-
set :permission_method, false
|
68
|
-
|
69
|
-
# Execute set permissions
|
70
|
-
set :use_set_permissions, false
|
62
|
+
# asset management
|
63
|
+
set :assets_install_path, "web"
|
64
|
+
set :assets_install_flags, '--symlink'
|
71
65
|
|
72
|
-
#
|
73
|
-
set :
|
66
|
+
# Share files/directories between releases
|
67
|
+
set :linked_files, []
|
68
|
+
set :linked_dirs, ["var/logs"]
|
74
69
|
|
75
|
-
#
|
76
|
-
set :
|
77
|
-
|
78
|
-
|
79
|
-
set :assets_install_path, fetch(:web_path)
|
70
|
+
# Set correct permissions between releases, this is turned off by default
|
71
|
+
set :file_permissions_paths, ["var"]
|
72
|
+
set :permission_method, false
|
73
|
+
```
|
80
74
|
|
81
|
-
|
82
|
-
set :assets_install_flags, '--symlink'
|
75
|
+
#### Using this plugin with the old Symfony 2 directory structure and SensioDistributionBundle <= 4
|
83
76
|
|
84
|
-
|
85
|
-
set :assetic_dump_flags, ''
|
77
|
+
Add the following to `deploy.rb` to use the old directory structure
|
86
78
|
|
87
|
-
fetch(:default_env).merge!(symfony_env: fetch(:symfony_env))
|
88
79
|
```
|
80
|
+
# deploy.rb
|
81
|
+
set :symfony_directory_structure, 2
|
82
|
+
set :sensio_distribution_version, 4
|
83
|
+
```
|
84
|
+
|
85
|
+
If you are upgrading this gem and have modified `linked_dirs` or "advanced" variables such as `log_path` then you will need to update those accordingly
|
89
86
|
|
90
87
|
### Flow
|
91
88
|
|
92
89
|
capistrano-symfony hooks into the [flow][1] offered by capistrano. It adds to that flow like so
|
93
90
|
|
94
|
-
*
|
95
|
-
*
|
96
|
-
*
|
97
|
-
*
|
91
|
+
* `symfony:create_cache_dir`
|
92
|
+
* `symfony:set_permissions`
|
93
|
+
* `symfony:cache:warmup`
|
94
|
+
* `symfony:clear_controllers`
|
98
95
|
|
99
96
|
```
|
100
97
|
deploy
|
@@ -122,16 +119,38 @@ deploy
|
|
122
119
|
|__ deploy:log_revision
|
123
120
|
```
|
124
121
|
|
122
|
+
### File permissions
|
123
|
+
|
124
|
+
Set the `permission_method` variable to one of `:chmod`, `:acl`, or `:chgrp` in your `deploy.rb` to handle the common scenario of a web user and the deploy user being different.
|
125
|
+
|
126
|
+
Both will need access to the files/directories such as `var/cache` and `web/uploads` (if you handle uploads). Set `file_permissions_users` to your webserver user
|
127
|
+
|
128
|
+
Example:
|
129
|
+
|
130
|
+
```
|
131
|
+
# deploy.rb
|
132
|
+
|
133
|
+
set :permission_method, :acl
|
134
|
+
set :file_permissions_users, ["nginx"]
|
135
|
+
set :file_permissions_paths, ["var", "web/uploads"]
|
136
|
+
```
|
137
|
+
|
138
|
+
Please note that `:acl` requires that `setfacl` be available on your deployment target
|
139
|
+
|
140
|
+
See [the symfony documentation](http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup) and [the file permission capistrano plugin](https://github.com/capistrano/file-permissions) for reference
|
141
|
+
|
125
142
|
### Integrated common tasks
|
126
143
|
|
127
|
-
The
|
128
|
-
|
129
|
-
*
|
144
|
+
The following common tasks are available:
|
145
|
+
|
146
|
+
* `symfony:assets:install`
|
147
|
+
* `symfony:build_bootstrap` - useful if you disable composer
|
148
|
+
|
149
|
+
So you can use them with hooks in your project's `deploy.rb` like this:
|
130
150
|
|
131
|
-
So you can use them with hooks like this:
|
132
151
|
```ruby
|
133
|
-
|
134
|
-
|
152
|
+
after 'deploy:updated', 'symfony:assets:install'
|
153
|
+
before 'deploy:updated', 'symfony:build_bootstrap'
|
135
154
|
```
|
136
155
|
|
137
156
|
### Using the Symfony console
|
@@ -145,17 +164,19 @@ project you may want to run migrations during a deploy.
|
|
145
164
|
```ruby
|
146
165
|
namespace :deploy do
|
147
166
|
task :migrate do
|
148
|
-
|
167
|
+
symfony_console('doctrine:migrations:migrate', '--no-interaction')
|
149
168
|
end
|
150
169
|
end
|
151
170
|
```
|
152
171
|
|
153
|
-
|
172
|
+
If you want to execute a command on a host with a given role you can use the Capistrano `on` DSL, additionally using `within` from Capistrano will change the directory
|
154
173
|
|
155
174
|
```ruby
|
156
175
|
namespace :deploy do
|
157
176
|
task :migrate do
|
158
|
-
|
177
|
+
on roles(:db) do
|
178
|
+
symfony_console('doctrine:migrations:migrate', '--no-interaction')
|
179
|
+
end
|
159
180
|
end
|
160
181
|
end
|
161
182
|
```
|
data/capistrano-symfony.gemspec
CHANGED
@@ -4,12 +4,12 @@ $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 = '0.
|
7
|
+
gem.version = '1.0.0.rc1'
|
8
8
|
gem.authors = ["Peter Mitchell"]
|
9
9
|
gem.email = ["pete@peterjmit.com"]
|
10
10
|
gem.description = %q{Symfony specific Capistrano tasks}
|
11
|
-
gem.summary = %q{Capistrano Symfony - Easy deployment of Symfony 2 apps with Ruby over SSH}
|
12
|
-
gem.homepage = "http://github.com/
|
11
|
+
gem.summary = %q{Capistrano Symfony - Easy deployment of Symfony 2 & 3 apps with Ruby over SSH}
|
12
|
+
gem.homepage = "http://github.com/capistrano/capistrano-symfony"
|
13
13
|
|
14
14
|
gem.files = `git ls-files`.split($/)
|
15
15
|
# no tests as of yet
|
@@ -25,11 +25,11 @@ Gem::Specification.new do |gem|
|
|
25
25
|
have changed.
|
26
26
|
|
27
27
|
The Big Brains Company and Thomas Tourlourat (@armetiz) kindly agreed to
|
28
|
-
|
28
|
+
transfer the ownership of this gem over to the Capistrano organization. The
|
29
29
|
previous repository can be found here https://github.com/TheBigBrainsCompany/capistrano-symfony
|
30
30
|
eos
|
31
31
|
|
32
32
|
gem.add_dependency 'capistrano', '~> 3.1'
|
33
33
|
gem.add_dependency 'capistrano-composer', '~> 0.0.3'
|
34
|
-
gem.add_dependency 'capistrano-file-permissions', '~>
|
34
|
+
gem.add_dependency 'capistrano-file-permissions', '~> 1.0'
|
35
35
|
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Capistrano
|
2
|
+
module DSL
|
3
|
+
module Symfony
|
4
|
+
|
5
|
+
def symfony_app_path
|
6
|
+
release_path.join(fetch(:app_path))
|
7
|
+
end
|
8
|
+
|
9
|
+
def symfony_web_path
|
10
|
+
release_path.join(fetch(:web_path))
|
11
|
+
end
|
12
|
+
|
13
|
+
def symfony_bin_path
|
14
|
+
release_path.join(fetch(:bin_path))
|
15
|
+
end
|
16
|
+
|
17
|
+
def symfony_var_path
|
18
|
+
release_path.join(fetch(:var_path))
|
19
|
+
end
|
20
|
+
|
21
|
+
def symfony_log_path
|
22
|
+
release_path.join(fetch(:log_path))
|
23
|
+
end
|
24
|
+
|
25
|
+
def symfony_cache_path
|
26
|
+
release_path.join(fetch(:cache_path))
|
27
|
+
end
|
28
|
+
|
29
|
+
def symfony_config_path
|
30
|
+
release_path.join(fetch(:app_config_path))
|
31
|
+
end
|
32
|
+
|
33
|
+
def symfony_console_path
|
34
|
+
release_path.join(fetch(:symfony_console_path))
|
35
|
+
end
|
36
|
+
|
37
|
+
def symfony_vendor_path
|
38
|
+
release_path.join('vendor')
|
39
|
+
end
|
40
|
+
|
41
|
+
def build_bootstrap_path
|
42
|
+
bootstrap_path = symfony_vendor_path.join("sensio/distribution-bundle")
|
43
|
+
|
44
|
+
if fetch(:sensio_distribution_version).to_i <= 4
|
45
|
+
bootstrap_path = bootstrap_path.join("Sensio/Bundle/DistributionBundle")
|
46
|
+
end
|
47
|
+
|
48
|
+
bootstrap_path.join("Resources/bin/build_bootstrap.php")
|
49
|
+
end
|
50
|
+
|
51
|
+
def symfony_console(command, params = '')
|
52
|
+
execute :php, symfony_console_path, command, params, fetch(:symfony_console_flags)
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
data/lib/capistrano/symfony.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
require "capistrano/dsl/symfony"
|
2
|
+
self.extend Capistrano::DSL::Symfony
|
3
|
+
|
4
|
+
SSHKit::Backend::Netssh.send(:include, Capistrano::DSL::Symfony)
|
5
|
+
|
1
6
|
require "capistrano/file-permissions"
|
2
7
|
require "capistrano/composer"
|
3
|
-
require "capistrano/symfony/dsl"
|
4
8
|
require "capistrano/symfony/symfony"
|
5
9
|
|
6
10
|
# Core tasks for deploying symfony
|
@@ -1,53 +1,42 @@
|
|
1
|
-
#
|
1
|
+
#
|
2
|
+
# Symfony defaults
|
3
|
+
#
|
2
4
|
set :symfony_env, "prod"
|
3
5
|
|
4
|
-
|
5
|
-
set :
|
6
|
+
set :symfony_directory_structure, 3
|
7
|
+
set :sensio_distribution_version, 5
|
6
8
|
|
7
|
-
#
|
8
|
-
set :
|
9
|
+
# symfony-standard edition top-level directories
|
10
|
+
set :app_path, "app"
|
11
|
+
set :web_path, "web"
|
12
|
+
set :var_path, "var"
|
13
|
+
set :bin_path, "bin"
|
9
14
|
|
10
|
-
#
|
11
|
-
|
15
|
+
# Use closures for directories nested under the top level dirs, so that
|
16
|
+
# any changes to web/app etc do not require these to be changed also
|
17
|
+
set :app_config_path, -> { fetch(:app_path) + "/config" }
|
18
|
+
set :log_path, -> { fetch(:symfony_directory_structure) == 2 ? fetch(:app_path) + "/logs" : fetch(:var_path) + "/logs" }
|
19
|
+
set :cache_path, -> { fetch(:symfony_directory_structure) == 2 ? fetch(:app_path) + "/cache" : fetch(:var_path) + "/cache" }
|
12
20
|
|
13
|
-
#
|
14
|
-
set :
|
15
|
-
|
16
|
-
# Symfony config file path
|
17
|
-
set :app_config_path, fetch(:app_path) + "/config"
|
21
|
+
# console
|
22
|
+
set :symfony_console_path, -> { fetch(:symfony_directory_structure) == 2 ? fetch(:app_path) + '/console' : fetch(:bin_path) + "/console" }
|
23
|
+
set :symfony_console_flags, "--no-debug"
|
18
24
|
|
19
|
-
# Controllers to clear
|
20
25
|
set :controllers_to_clear, ["app_*.php"]
|
21
26
|
|
22
|
-
#
|
23
|
-
set :
|
24
|
-
|
25
|
-
# Dirs that need to remain the same between deploys (shared dirs)
|
26
|
-
set :linked_dirs, [fetch(:log_path), fetch(:web_path) + "/uploads"]
|
27
|
-
|
28
|
-
# Dirs that need to be writable by the HTTP Server (i.e. cache, log dirs)
|
29
|
-
set :file_permissions_paths, [fetch(:log_path), fetch(:cache_path)]
|
27
|
+
# assets
|
28
|
+
set :assets_install_path, fetch(:web_path)
|
29
|
+
set :assets_install_flags, '--symlink'
|
30
30
|
|
31
|
-
#
|
32
|
-
|
31
|
+
#
|
32
|
+
# Capistrano defaults
|
33
|
+
#
|
34
|
+
set :linked_files, []
|
35
|
+
set :linked_dirs, -> { [fetch(:log_path)] }
|
33
36
|
|
37
|
+
#
|
38
|
+
# Configure capistrano/file-permissions defaults
|
39
|
+
#
|
40
|
+
set :file_permissions_paths, -> { fetch(:symfony_directory_structure) == 2 ? [fetch(:log_path), fetch(:cache_path)] : [fetch(:var_path)] }
|
34
41
|
# Method used to set permissions (:chmod, :acl, or :chown)
|
35
|
-
set :permission_method,
|
36
|
-
|
37
|
-
# Execute set permissions
|
38
|
-
set :use_set_permissions, false
|
39
|
-
|
40
|
-
# Symfony console path
|
41
|
-
set :symfony_console_path, fetch(:app_path) + "/console"
|
42
|
-
|
43
|
-
# Symfony console flags
|
44
|
-
set :symfony_console_flags, "--no-debug"
|
45
|
-
|
46
|
-
# Assets install path
|
47
|
-
set :assets_install_path, fetch(:web_path)
|
48
|
-
|
49
|
-
# Assets install flags
|
50
|
-
set :assets_install_flags, '--symlink'
|
51
|
-
|
52
|
-
# Assetic dump flags
|
53
|
-
set :assetic_dump_flags, ''
|
42
|
+
set :permission_method, false
|
@@ -11,44 +11,37 @@ namespace :symfony do
|
|
11
11
|
|
12
12
|
on release_roles(role) do
|
13
13
|
within release_path do
|
14
|
-
|
14
|
+
symfony_console(command, params)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
Rake::Task[t.name].reenable
|
19
19
|
end
|
20
20
|
|
21
|
-
task :command, :command_name, :flags do |t, args|
|
22
|
-
on roles(:all) do
|
23
|
-
warn "The task symfony:command is deprecated in favor of symfony:console"
|
24
|
-
invoke "symfony:console", args[:command_name], args[:flags]
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
21
|
namespace :cache do
|
30
22
|
desc "Run app/console cache:clear for the #{fetch(:symfony_env)} environment"
|
31
23
|
task :clear do
|
32
|
-
|
24
|
+
on release_roles(:all) do
|
25
|
+
symfony_console "cache:clear"
|
26
|
+
end
|
33
27
|
end
|
34
28
|
|
35
29
|
desc "Run app/console cache:warmup for the #{fetch(:symfony_env)} environment"
|
36
30
|
task :warmup do
|
37
|
-
|
31
|
+
on release_roles(:all) do
|
32
|
+
symfony_console "cache:warmup"
|
33
|
+
end
|
38
34
|
end
|
39
35
|
end
|
40
36
|
|
41
37
|
namespace :assets do
|
42
38
|
desc "Install assets"
|
43
39
|
task :install do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
desc "Dump assets with Assetic"
|
50
|
-
task :dump do
|
51
|
-
invoke "symfony:console", "assetic:dump", fetch(:assetic_dump_flags)
|
40
|
+
on release_roles(:all) do
|
41
|
+
within release_path do
|
42
|
+
symfony_console "assets:install", fetch(:assets_install_path) + ' ' + fetch(:assets_install_flags)
|
43
|
+
end
|
44
|
+
end
|
52
45
|
end
|
53
46
|
end
|
54
47
|
|
@@ -64,10 +57,10 @@ namespace :symfony do
|
|
64
57
|
end
|
65
58
|
end
|
66
59
|
|
67
|
-
desc "
|
60
|
+
desc "Set user/group permissions on configured paths"
|
68
61
|
task :set_permissions do
|
69
62
|
on release_roles :all do
|
70
|
-
if fetch(:
|
63
|
+
if fetch(:permission_method) != false
|
71
64
|
invoke "deploy:set_permissions:#{fetch(:permission_method).to_s}"
|
72
65
|
end
|
73
66
|
end
|
@@ -87,7 +80,7 @@ namespace :symfony do
|
|
87
80
|
task :build_bootstrap do
|
88
81
|
on release_roles :all do
|
89
82
|
within release_path do
|
90
|
-
execute :php,
|
83
|
+
execute :php, build_bootstrap_path, fetch(:app_path)
|
91
84
|
end
|
92
85
|
end
|
93
86
|
end
|
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: 0.
|
4
|
+
version: 1.0.0.rc1
|
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: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '1.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '1.0'
|
55
55
|
description: Symfony specific Capistrano tasks
|
56
56
|
email:
|
57
57
|
- pete@peterjmit.com
|
@@ -60,20 +60,20 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- CHANGELOG.md
|
63
64
|
- LICENCE.txt
|
64
65
|
- README.md
|
65
66
|
- capistrano-symfony.gemspec
|
66
67
|
- lib/capistrano-symfony.rb
|
68
|
+
- lib/capistrano/dsl/symfony.rb
|
67
69
|
- lib/capistrano/symfony.rb
|
68
70
|
- lib/capistrano/symfony/defaults.rb
|
69
71
|
- lib/capistrano/symfony/deploy.rb
|
70
|
-
- lib/capistrano/symfony/dsl.rb
|
71
|
-
- lib/capistrano/symfony/dsl/paths.rb
|
72
72
|
- lib/capistrano/symfony/symfony.rb
|
73
73
|
- lib/capistrano/tasks/deploy.rake
|
74
74
|
- lib/capistrano/tasks/set_symfony_env.rake
|
75
75
|
- lib/capistrano/tasks/symfony.rake
|
76
|
-
homepage: http://github.com/
|
76
|
+
homepage: http://github.com/capistrano/capistrano-symfony
|
77
77
|
licenses:
|
78
78
|
- MIT
|
79
79
|
metadata: {}
|
@@ -84,7 +84,7 @@ post_install_message: |2
|
|
84
84
|
have changed.
|
85
85
|
|
86
86
|
The Big Brains Company and Thomas Tourlourat (@armetiz) kindly agreed to
|
87
|
-
|
87
|
+
transfer the ownership of this gem over to the Capistrano organization. The
|
88
88
|
previous repository can be found here https://github.com/TheBigBrainsCompany/capistrano-symfony
|
89
89
|
rdoc_options: []
|
90
90
|
require_paths:
|
@@ -96,13 +96,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- - "
|
99
|
+
- - ">"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 1.3.1
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.4.5.1
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
|
-
summary: Capistrano Symfony - Easy deployment of Symfony 2 apps with Ruby over
|
107
|
+
summary: Capistrano Symfony - Easy deployment of Symfony 2 & 3 apps with Ruby over
|
108
|
+
SSH
|
108
109
|
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'capistrano/symfony/dsl/paths'
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require "capistrano/dsl/paths"
|
2
|
-
|
3
|
-
module Capistrano
|
4
|
-
module DSL
|
5
|
-
module Paths
|
6
|
-
|
7
|
-
def symfony_app_path
|
8
|
-
release_path.join(fetch(:app_path))
|
9
|
-
end
|
10
|
-
|
11
|
-
def symfony_web_path
|
12
|
-
release_path.join(fetch(:web_path))
|
13
|
-
end
|
14
|
-
|
15
|
-
def symfony_log_path
|
16
|
-
release_path.join(fetch(:log_path))
|
17
|
-
end
|
18
|
-
|
19
|
-
def symfony_cache_path
|
20
|
-
release_path.join(fetch(:cache_path))
|
21
|
-
end
|
22
|
-
|
23
|
-
def symfony_config_path
|
24
|
-
release_path.join(fetch(:app_config_path))
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|