capistrano-symfony 2.0.0.pre.alfa2 → 2.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 61941f2ad52b76dc9e3d0ecbb9c7a027f08a644f7aa8e6e5a25941acd00e53a2
4
- data.tar.gz: ec6e4a68009b508cdcd3442e1696f2edc60d6951a303aa49d2575badee83ce48
2
+ SHA1:
3
+ metadata.gz: 047a489b72266c63a310f6de519e3c0c2b179147
4
+ data.tar.gz: d040cac3108bc5e97916767f0e8bd4a4bb6e850a
5
5
  SHA512:
6
- metadata.gz: c84a172ab059f2ac81bb26fd49246b17fbdee8e5946ca53e0bf3cdb31f0eaa15d9c517196ad46a80fbed7a3d325bc2b90114f3dce7c6bb700c4942d461a248fa
7
- data.tar.gz: 270de40a63e9c132e6b732dce71dc3040c401b4029b436a5d095daff315b55fa7b19ee8e191345181c8eef5ebf30055dc30272855ac9962915c0d1406e718c62
6
+ metadata.gz: f3243ce266ada023b98d819875cbfd699b50a7b7a3c1084a52c1bc5cb057dc25c32e34067a77ba61fce1403151d2afa8dc94b349ac320c8f4c5ba7c13a6ce72b
7
+ data.tar.gz: f19964eec244a360726a00d0cba67d1dd150c9655b81cdb5998fc60576638c2427c02a40253fc1992a2f78c2025a83812ec089dd25f91241c815664a88a00a2c
@@ -1,5 +1,10 @@
1
1
  # Capistrano Symfony 1.x Changelog
2
2
 
3
+ ## `2.0.0`
4
+
5
+ We are not linking `.env` by default. To upgrade from `2.0.0-alfa2` please add the following:
6
+
7
+ `set :linked_files, [".env"]`
3
8
 
4
9
  ## `2.0.0-alfa2`
5
10
 
data/README.md CHANGED
@@ -28,7 +28,7 @@ Specify your dependencies:
28
28
  # Gemfile
29
29
  source 'https://rubygems.org'
30
30
  gem 'capistrano', '~> 3.11'
31
- gem 'capistrano-symfony', '~> 2.0.0-alfa1'
31
+ gem 'capistrano-symfony', '~> 2.0.0'
32
32
  ```
33
33
 
34
34
  Install your dependencies:
@@ -43,15 +43,18 @@ to set up your local files:
43
43
  cap install
44
44
  ```
45
45
 
46
- Make Capistrano aware of `'capistrano/symfony' by require capistrano-symfony in your
47
- new Capfile
46
+ Make Capistrano aware of `'capistrano/symfony'` by requiring capistrano-symfony in your
47
+ new Capfile after `require "capistrano/deploy"`.
48
48
 
49
- ```
49
+ ```ruby
50
50
  # Capfile
51
- require 'capistrano/symfony'
51
+ # ...
52
+ require "capistrano/symfony"
53
+ ```
52
54
 
53
- # If you use composer you might want this:
54
- require 'capistrano/composer'
55
+ If you use composer you might want this:
56
+ ```
57
+ require "capistrano/composer"
55
58
  ```
56
59
 
57
60
  ## Usage
@@ -93,7 +96,7 @@ set :assets_install_path, "public"
93
96
  set :assets_install_flags, '--symlink'
94
97
 
95
98
  # Share files/directories between releases
96
- set :linked_dirs, ["var/logs"]
99
+ set :linked_dirs, ["var/log"]
97
100
  set :linked_files, []
98
101
  # To use a .env file:
99
102
  #set :linked_files, [".env"]
@@ -220,13 +223,22 @@ end
220
223
 
221
224
  ### Using composer
222
225
 
223
- If you use composer, make sure your Capfile includes:
226
+ If you use composer you can install `capistrano/composer`. Here are some short
227
+ instructions. Read more at [capistrano/composer](https://github.com/capistrano/composer).
228
+
229
+ First run the following command to download the library:
230
+
231
+ ```
232
+ gem install capistrano-composer
233
+ ```
234
+
235
+ Then make sure your Capfile includes the following:
224
236
 
225
237
  ```
226
238
  require 'capistrano/composer'
227
239
  ```
228
240
 
229
- To download the composer executable add the following to your `deploy.rb`:
241
+ To download the composer.phar executable add the following to your `deploy.rb`:
230
242
 
231
243
  ```
232
244
  # First define deploy target:
@@ -234,6 +246,10 @@ set :deploy_to, "/home/sites/com.example"
234
246
 
235
247
  # Install composer if it does not exist
236
248
  SSHKit.config.command_map[:composer] = "php #{shared_path.join("composer.phar")}"
249
+
250
+ namespace :deploy do
251
+ after :starting, 'composer:install_executable'
252
+ end
237
253
  ```
238
254
 
239
255
  [1]: http://capistranorb.com/documentation/getting-started/flow/
@@ -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 = '2.0.0-alfa2'
7
+ gem.version = '2.0.0'
8
8
  gem.authors = ["Peter Mitchell"]
9
9
  gem.email = ["pete@peterjmit.com"]
10
10
  gem.description = %q{Symfony specific Capistrano tasks}
@@ -39,7 +39,9 @@ module Capistrano
39
39
  end
40
40
 
41
41
  def symfony_console(command, params = '')
42
- execute :php, symfony_console_path, command, params, fetch(:symfony_console_flags)
42
+ on release_roles(fetch(:symfony_deploy_roles)) do
43
+ execute fetch(:php), symfony_console_path, command, params, fetch(:symfony_console_flags)
44
+ end
43
45
  end
44
46
 
45
47
  end
@@ -14,6 +14,9 @@ set :web_path, "public"
14
14
  set :log_path, -> { fetch(:var_path) + "/log" }
15
15
  set :cache_path, -> { fetch(:var_path) + "/cache" }
16
16
 
17
+ # PHP executable used to run commands
18
+ set :php, "php"
19
+
17
20
  # console
18
21
  set :symfony_console_path, -> { fetch(:bin_path) + "/console" }
19
22
  set :symfony_console_flags, "--no-debug"
@@ -25,7 +28,7 @@ set :assets_install_flags, '--symlink'
25
28
  #
26
29
  # Capistrano defaults
27
30
  #
28
- set :linked_files, -> { [".env"] }
31
+ set :linked_files, -> { [] }
29
32
  set :linked_dirs, -> { [fetch(:log_path)] }
30
33
 
31
34
  #
@@ -37,4 +40,4 @@ set :permission_method, false
37
40
 
38
41
  # Role filtering
39
42
  set :symfony_roles, :all
40
- set :symfony_deploy_roles, :all
43
+ set :symfony_deploy_roles, :all
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: 2.0.0.pre.alfa2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mitchell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-22 00:00:00.000000000 Z
11
+ date: 2019-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -98,12 +98,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.3.1
103
+ version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.7.6
106
+ rubygems_version: 2.5.2.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Capistrano Symfony - Easy deployment of Symfony 4 apps with Ruby over SSH