capistrano-magento2 0.6.2 → 0.6.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/capistrano/magento2.rb +9 -0
- data/lib/capistrano/magento2/version.rb +1 -1
- data/lib/capistrano/tasks/magento.rake +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c6e20e0a5720c0a9dfc6b1bb5eb9e248692cca
|
4
|
+
data.tar.gz: 781b1944145dede8ffbbd7dc8ad74a722109898e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0a6aa181337bbff846f8a018eef9365868d870154cfee90b68527af957560cefe8ea7b2ae5c9fcdf8fb0dbbe7411396e594069c7f6efedba9f2f13883e8837
|
7
|
+
data.tar.gz: 94557d8ac7624e22a72d29123069e4fa6b832a8d9bfc56f8e9227826e2f935c249373f50e126e9f88a2c5e889095d2e9b6e5803f8576be41f3b988298c98276c
|
data/CHANGELOG.md
CHANGED
data/lib/capistrano/magento2.rb
CHANGED
@@ -64,6 +64,15 @@ module Capistrano
|
|
64
64
|
end
|
65
65
|
}
|
66
66
|
end
|
67
|
+
|
68
|
+
def deployed_version
|
69
|
+
# Generate a static content version string, but only if one has not already been set on a previous call
|
70
|
+
if not fetch(:magento_static_deployed_version)
|
71
|
+
set :magento_static_deployed_version, DateTime.now.strftime("%s")
|
72
|
+
info "Static content version: #{fetch(:magento_static_deployed_version)}"
|
73
|
+
end
|
74
|
+
return fetch(:magento_static_deployed_version)
|
75
|
+
end
|
67
76
|
end
|
68
77
|
end
|
69
78
|
end
|
@@ -300,6 +300,9 @@ namespace :magento do
|
|
300
300
|
within release_path do with(https: 'on') {
|
301
301
|
static_content_deploy "#{deploy_jobs}#{deploy_languages}#{deploy_themes}#{deploy_flags}"
|
302
302
|
} end
|
303
|
+
|
304
|
+
# Set the deployed_version of static content to ensure it matches across all hosts
|
305
|
+
upload!(StringIO.new(deployed_version), "#{release_path}/pub/static/deployed_version.txt")
|
303
306
|
end
|
304
307
|
end
|
305
308
|
end
|
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.
|
4
|
+
version: 0.6.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: 2017-
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|