capistrano-sozo_magento2 1.8.0 → 1.9.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: 30ddb4232948b060b40cd21385c277fa47f3f047838b461320638b8a46a7fa72
4
- data.tar.gz: 483615f92d6c6f94088702fad14bed24ed4048cd583a0bde96b2182dea144954
3
+ metadata.gz: b35a3ce9389d3b8273c170ddeff453f30b19d401031d89903be64e874ba3823f
4
+ data.tar.gz: 7f02072605823586b01595a3d28dce4865c45b347b473e5eacf8ca33b1e4d596
5
5
  SHA512:
6
- metadata.gz: 1c9408af646a0cebe70f06de570403d5ffb40be9fb292c957d638abdc26619454c7c1192c2ec01f44fcde9c563b1e3f682bb6c4fedf5668286aebb40b6cca159
7
- data.tar.gz: 28af1de39d23d75249378353572187456f9f5902a073ee1252fa947684da126a050080a5ffae30458f7edf44b421e67b330b3d09de775d37cd766f3a595bb0f8
6
+ metadata.gz: f995340c4dc6cbdc6c84b433bc3e9caab829653a02590b7f71e9d2aeb94c449629ecd8f0c91287863f8c8543489acc4a86b26e359740c46a99532120cea6fc91
7
+ data.tar.gz: 0e194ab4a6b8267435483b4cc3a85f9a4cabfc006de3bb07da4293de339bf5d7ea670313269b32cb53a1a5d24f36cdc1cc361ae0de253750ba1fc90ec36ddcc0
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.3
data/CHANGELOG.md CHANGED
@@ -21,6 +21,11 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
21
21
 
22
22
  ## [Unreleased]
23
23
 
24
+ ## [v1.9.0] - 2022-11-18
25
+ ### Added
26
+ - WP binary override
27
+
28
+
24
29
  ## [v1.8.0] - 2022-10-14
25
30
  ### Added
26
31
  - varnish role added to restart varnish service
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.8"
10
+ gem "capistrano-sozo_magento2", "~> 1.9"
11
11
  ```
12
12
  2. Install
13
13
  ```
@@ -76,6 +76,7 @@ Composer and n98-magerun command are both prefixed with the PHP path (for multi-
76
76
  SSHKit.config.command_map[:php] = '/usr/bin/env php74 -dmemory_limit=-1'
77
77
  SSHKit.config.command_map[:composer] = SSHKit.config.command_map[:php], '-f /usr/local/bin/composer'
78
78
  SSHKit.config.command_map[:n98magerun] = SSHKit.config.command_map[:php], '-f /usr/local/bin/n98-magerun'
79
+ SSHKit.config.command_map[:wp] = SSHKit.config.command_map[:php], '-f /usr/local/bin/wp'
79
80
  SSHKit.config.command_map[:magento] = SSHKit.config.command_map[:php], '-f bin/magento --'
80
81
  SSHKit.config.command_map[:app_controller] = 'sudo /usr/bin/systemctl'
81
82
  ```
@@ -4,6 +4,6 @@ module Capistrano
4
4
  module SozoMagento2
5
5
  # The plugin version number
6
6
  # @return [String] The gem version number
7
- VERSION = "1.8.0"
7
+ VERSION = "1.9.0"
8
8
  end
9
9
  end
@@ -3,6 +3,7 @@ require 'date'
3
3
  SSHKit.config.command_map[:php] = '/usr/bin/env php -dmemory_limit=-1'
4
4
  SSHKit.config.command_map[:composer] = SSHKit.config.command_map[:php], '-f /usr/local/bin/composer'
5
5
  SSHKit.config.command_map[:n98magerun] = SSHKit.config.command_map[:php], '-f /usr/local/bin/n98-magerun'
6
+ SSHKit.config.command_map[:wp] = SSHKit.config.command_map[:php], '-f /usr/local/bin/wp'
6
7
  SSHKit.config.command_map[:magento] = SSHKit.config.command_map[:php], '-f bin/magento --'
7
8
  SSHKit.config.command_map[:app_controller] = 'sudo /usr/bin/systemctl'
8
9
 
@@ -158,7 +158,16 @@ namespace :magento do
158
158
  task :upgrade do
159
159
  on release_roles :all do
160
160
  within release_path do
161
- execute :php, '-f', 'magento/bin/magento', 'setup:upgrade', '-n'
161
+ # Check if an upgrade is required capture the setup:db:status output
162
+ #check = capture(:php, '-f', 'magento/bin/magento', 'setup:db:status', '--no-ansi')
163
+ #debug "#{check}"
164
+
165
+ #if !check.start_with?("All")
166
+ # info "Setup upgrade required"
167
+ execute :php, '-f', 'magento/bin/magento', 'setup:upgrade', '-n'
168
+ #else
169
+ # info "Modules are all up to date, no database upgrade required!"
170
+ #end
162
171
  end
163
172
  end
164
173
  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.8.0
4
+ version: 1.9.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: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -32,6 +32,7 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - ".gitignore"
35
+ - ".ruby-version"
35
36
  - ".yardopts"
36
37
  - BUILD.md
37
38
  - CHANGELOG.md