capistrano-magento2 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1c6e20e0a5720c0a9dfc6b1bb5eb9e248692cca
4
- data.tar.gz: 781b1944145dede8ffbbd7dc8ad74a722109898e
3
+ metadata.gz: c28c8853fc1ad5cbd6f71307babf6f930264f717
4
+ data.tar.gz: a7aa576949fe6e30d15e32cd9ac720d38fc515cb
5
5
  SHA512:
6
- metadata.gz: 4f0a6aa181337bbff846f8a018eef9365868d870154cfee90b68527af957560cefe8ea7b2ae5c9fcdf8fb0dbbe7411396e594069c7f6efedba9f2f13883e8837
7
- data.tar.gz: 94557d8ac7624e22a72d29123069e4fa6b832a8d9bfc56f8e9227826e2f935c249373f50e126e9f88a2c5e889095d2e9b6e5803f8576be41f3b988298c98276c
6
+ metadata.gz: 2ff54488c83b5d3704b552ac492d8098ad8c14a4d9f11ff1c36eabe419c23037c8671fecdece7b4a68b7da6a7490d32772431d2071539ba63a24990b9f3b4e58
7
+ data.tar.gz: 8dcf73fe054d0b677430072b587c74603ca1cccbd375cdaf65f8f975328e081ced3beb53b0ce6ccf5ff92ec39ea767dac8f7091b7e87ae2e7c5059968bdbd447
@@ -1,5 +1,10 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.6.4
4
+ ==========
5
+
6
+ * Added support for the config.local.php file found in Magento 2.1.6 and later
7
+
3
8
  0.6.3
4
9
  ==========
5
10
 
data/README.md CHANGED
@@ -148,6 +148,7 @@ For the sake of simplicity in new project setups `:linked_dirs` and `:linked_fil
148
148
  ```ruby
149
149
  set :linked_files, [
150
150
  'app/etc/env.php',
151
+ 'app/etc/config.local.php',
151
152
  'var/.setup_cronjob_status',
152
153
  'var/.update_cronjob_status'
153
154
  ]
@@ -171,6 +172,8 @@ If you would like to customize the linked files or directories for your project,
171
172
  append :linked_dirs, 'path/to/link'
172
173
  ```
173
174
 
175
+ Support for a `app/etc/config.local.php` configuration file was added to Magento 2.1.6. This file will be linked in from the `shared/app/etc` directory as of v0.6.4 of this gem. If this file is present in the project repository, the file will not be linked.
176
+
174
177
  ### Composer Auth Credentials
175
178
 
176
179
  Magento 2's composer repository requires auth credentials to install. These can be set on target servers in a global composer `auth.json` file, the project's `composer.json` or by setting them in your deployment configuration using the following two settings:
@@ -9,12 +9,14 @@
9
9
 
10
10
  set :linked_files, fetch(:linked_files, []).push(
11
11
  'app/etc/env.php',
12
+ 'app/etc/config.local.php',
12
13
  'var/.setup_cronjob_status',
13
14
  'var/.update_cronjob_status'
14
15
  )
15
16
 
16
17
  set :linked_files_touch, fetch(:linked_files_touch, []).push(
17
18
  'app/etc/env.php',
19
+ 'app/etc/config.local.php',
18
20
  'var/.setup_cronjob_status',
19
21
  'var/.update_cronjob_status'
20
22
  )
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.6.3'
12
+ VERSION = '0.6.4'
13
13
  end
14
14
  end
@@ -11,6 +11,7 @@ include Capistrano::Magento2::Helpers
11
11
 
12
12
  namespace :deploy do
13
13
  before 'deploy:check:linked_files', 'magento:deploy:check'
14
+ before 'deploy:symlink:linked_files', 'magento:deploy:local_config'
14
15
 
15
16
  before :starting, :confirm_action do
16
17
  if fetch(:magento_deploy_confirm).include? fetch(:stage).to_s
@@ -155,6 +155,17 @@ namespace :magento do
155
155
  end
156
156
  exit 1 if is_err
157
157
  end
158
+
159
+ task :local_config do
160
+ on release_roles :all do
161
+ if test "[ -f #{release_path}/app/etc/config.local.php ]"
162
+ info "The repository contains app/etc/config.local.php, removing from :linked_files list."
163
+ _linked_files = fetch(:linked_files, [])
164
+ _linked_files.delete('app/etc/config.local.php')
165
+ set :linked_files, _linked_files
166
+ end
167
+ end
168
+ end
158
169
  end
159
170
 
160
171
  namespace :setup do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-01 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano