capistrano-magento2 0.2.2 → 0.2.3

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
2
  SHA1:
3
- metadata.gz: afea1cbecaf5243af8bb54755fdcc20762f7fa7d
4
- data.tar.gz: ea4aa622d5d6ff361e815604b2c904a8f80333cb
3
+ metadata.gz: 5899cb85ebb2927b4fe4204c5fac29bcb4af9021
4
+ data.tar.gz: da7de9d38d7dc4f6305a9eefe4f79e4f4be7c00b
5
5
  SHA512:
6
- metadata.gz: 389585079a58034ccce1845c0ed09b5d03a7bce8239ad5b9e3b0b905305a89041ed42a8b9e2c5c028735fa41f0eed89af1a460e67e29263907c1fb21364bf610
7
- data.tar.gz: 440bf8069320a75ebee0b3cae150952a81ff6e8554d082e80d18de2b018140892aa917732afe01902d83a375a9e7a105a3c60a9028e3655608164e6c20f13202
6
+ metadata.gz: 148251eaa1d77e14b4d7919051e0da0d8dfefe6057a34500743395d9d8661482655b7dc9f245e6148776df35313da85144df015964e41fbe53fa6b717574de70
7
+ data.tar.gz: d1f26ea16820b441257fc875098f4feab784e43ee943553373dbfcb36e36166f00faede11361efcce500cc4e455c3cd33fd88f73b16c7ff165a56843ff643a23
data/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.2.3
3
4
  ==========
4
- Unreleased
5
5
 
6
- * Revert "Add workaround for M2.0.4 bug noted in magento/magento2#4070"
6
+ * Added file check to halt deploy if app/etc/config.php is not present in repository
7
+ * Added check to verify that app/etc/env.php contains an array with an install date
7
8
 
9
+ 0.2.2
8
10
  ==========
11
+
12
+ * Revert "Add workaround for M2.0.4 bug noted in magento/magento2#4070"
13
+
9
14
  0.2.1
15
+ ==========
10
16
 
11
17
  * Fixed issue with initial deploy failing before 'current' link has been created on target
12
18
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.2.2'
12
+ VERSION = '0.2.3'
13
13
  end
14
14
  end
@@ -10,6 +10,7 @@
10
10
  namespace :deploy do
11
11
  task :updated do
12
12
  on release_roles :all do
13
+ invoke 'magento:setup:verify'
13
14
  invoke 'magento:composer:install'
14
15
  invoke 'magento:setup:permissions'
15
16
  invoke 'magento:setup:static-content:deploy'
@@ -95,6 +95,23 @@ namespace :magento do
95
95
  end
96
96
 
97
97
  namespace :setup do
98
+ task :verify do
99
+ on release_roles :all do
100
+ unless test "[ -f #{release_path}/app/etc/config.php ]"
101
+ error "The repository is missing app/etc/config.php. Please install the application and retry!"
102
+ exit 1
103
+ end
104
+
105
+ unless test %Q[#{SSHKit.config.command_map[:php]} -r '
106
+ $cfg = include "#{release_path}/app/etc/env.php";
107
+ exit((int)!isset($cfg["install"]["date"]));
108
+ ']
109
+ error "No environment configuration could be found. Please configure app/etc/env.php and retry!"
110
+ exit 1
111
+ end
112
+ end
113
+ end
114
+
98
115
  desc 'Run the Magento upgrade process'
99
116
  task :upgrade do
100
117
  on release_roles :all 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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano