capistrano-sozo_magento2 1.2.1 → 1.3.0

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
  SHA256:
3
- metadata.gz: 808960e0120a734084b78112c9497f68ed02df489515f806d9ffc0108c368ed2
4
- data.tar.gz: dd00b79984f21952466e405443b006263e820517c2a0661cea0e4961a02991d2
3
+ metadata.gz: 84cc07edb383402a00fb355b8b4b60bcf888916e9b26fb4fe7ba9343532df464
4
+ data.tar.gz: 828a269fcce6b08dd2d1d537e2fd9f1487615bfc2fe91c618217b6f5e9977e0f
5
5
  SHA512:
6
- metadata.gz: a95a1a495572c06f9dcda5c8e535bc4785349044b0fb5c95702fc3aa8191b1337a3f64c9e977b97a914905b2c2a54278a2cb0df1473703850b6869179999803e
7
- data.tar.gz: 5d32ba014c057f5a3e7116d99c68dad25a2432102688de1905b19793c2920f3ab477816eacfaf19b29f8a5b6e4d01af9fc8a5b60561efcc31da658301c4b3d04
6
+ metadata.gz: 8e60dbae8730826a6d503297040534fe91db718a8e075bd7076eb4779bedb73202b7efafb6ef8bdbb015dd04cf083b839943650dd7524ff7cf130d4547cd11b1
7
+ data.tar.gz: 3dfd136cd8afdef71e728db387c87c8cb52a7d376b8902e8d6922281fcf0f5ca847fbbad05562abd8f3658b146c4f1a5b8b8b3aee5b2e7f80d106696ff116cc2
data/CHANGELOG.md CHANGED
@@ -21,14 +21,19 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
21
21
 
22
22
  ## [Unreleased]
23
23
 
24
- ## [v1.2.1] - 2020-05-06
24
+ ## [v1.3.0] - 2021-05-14
25
+ ### Added
26
+ - New task to check for ece-patches file `.magento.env.yaml` and to apply if it finds one.
27
+
28
+
29
+ ## [v1.2.1] - 2021-05-06
25
30
  ### Fixed
26
31
  - WordPress backup not respecting the :wp_backup false option
27
32
  - Erroneous symlink created inside release directories
28
33
  - Added simple text output in Slack message
29
34
 
30
35
 
31
- ## [v1.2.0] - 2020-03-25
36
+ ## [v1.2.0] - 2021-03-25
32
37
  ### Added
33
38
  - New variable `clear_failures` for future use.
34
39
  - New Slack class to control the message template.
@@ -45,7 +50,7 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
45
50
  - Fix issue when there were less than CAP_KEEP_BACKUPS available.
46
51
 
47
52
 
48
- ## [v1.1.0] - 2020-02-24
53
+ ## [v1.1.0] - 2021-02-24
49
54
  ### Added
50
55
  - Added defaults for the :wp_backup, :keep_backups and :slack_channel instead of using ENV's
51
56
  - Added BUILD.md for reminders on how to build and publish the gem.
@@ -61,7 +66,7 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
61
66
  - Confirm command now using correct symbols to display against roles.
62
67
 
63
68
 
64
- ## [v1.0.1] - 2020-02-20
69
+ ## [v1.0.1] - 2021-02-20
65
70
  ### Added
66
71
  - CHANGELOG.md
67
72
  - License text
@@ -71,5 +76,5 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
71
76
  - Documentation references to the gem.
72
77
 
73
78
 
74
- ### [v1.0.0] - 2020-02-20
79
+ ### [v1.0.0] - 2021-02-20
75
80
  - Initial release
data/README.md CHANGED
@@ -7,7 +7,7 @@ It is advised to use bundler.
7
7
 
8
8
  1. Add the following to your projects `Gemfile`
9
9
  ```
10
- gem "capistrano-sozo_magento2", "~> 1.2"
10
+ gem "capistrano-sozo_magento2", "~> 1.3"
11
11
  ```
12
12
  2. Install
13
13
  ```
@@ -17,6 +17,7 @@ load File.expand_path('../tasks/server.rake', __FILE__)
17
17
  load File.expand_path('../tasks/wordpress.rake', __FILE__)
18
18
 
19
19
  after 'deploy:updating', 'composer:install'
20
+ after 'deploy:updating', 'magento:patches:apply'
20
21
  after 'deploy:updating', 'magento:setup:permissions'
21
22
 
22
23
  before 'deploy:updated', 'slack:deploying'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module SozoMagento2
3
- VERSION = "1.2.1"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
@@ -244,4 +244,34 @@ namespace :magento do
244
244
  end
245
245
  end
246
246
 
247
+ namespace :patches do
248
+ desc 'Run the ece-patch tool if the .magento.env.yaml file exists'
249
+ task :apply do
250
+ on release_roles :all do
251
+ within release_path do
252
+ if test("[ -f #{release_path}/magento/.magento.env.yaml ]")
253
+ info 'Applying patches'
254
+ execute :php, '-dmemory_limit=-1', '-f', 'magento/vendor/bin/ece-patches', 'apply --no-interaction'
255
+ else
256
+ info 'No patch file found, skipping.'
257
+ end
258
+ end
259
+ end
260
+ end
261
+
262
+ desc 'Revert patches if the .magento.env.yaml files exists'
263
+ task :revert do
264
+ on release_roles :all do
265
+ within release_path do
266
+ if test("[ -f #{release_path}/magento/.magento.env.yaml ]")
267
+ info 'Reverting patches'
268
+ execute :php, '-dmemory_limit=-1', '-f', 'magento/vendor/bin/ece-patches', 'revert --no-interaction'
269
+ else
270
+ info 'No patch file found, skipping.'
271
+ end
272
+ end
273
+ end
274
+ end
275
+ end
276
+
247
277
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-sozo_magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clive Walkden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano