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 +4 -4
- data/CHANGELOG.md +10 -5
- data/README.md +1 -1
- data/lib/capistrano/sozo_magento2.rb +1 -0
- data/lib/capistrano/sozo_magento2/version.rb +1 -1
- data/lib/capistrano/tasks/magento2.rake +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84cc07edb383402a00fb355b8b4b60bcf888916e9b26fb4fe7ba9343532df464
|
4
|
+
data.tar.gz: 828a269fcce6b08dd2d1d537e2fd9f1487615bfc2fe91c618217b6f5e9977e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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] -
|
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] -
|
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] -
|
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] -
|
79
|
+
### [v1.0.0] - 2021-02-20
|
75
80
|
- Initial release
|
data/README.md
CHANGED
@@ -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'
|
@@ -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.
|
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-
|
11
|
+
date: 2021-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|