capistrano-magento2 0.1.2 → 0.1.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 +16 -0
- data/lib/capistrano/magento2/version.rb +1 -1
- data/lib/capistrano/tasks/magento.rake +10 -5
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e07f9eb98c1eaba3b2aefcb1839d2a46b403a04b
|
|
4
|
+
data.tar.gz: 69547dbde12c91453e71631c4ee25e04c51ec357
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31b44b23d3f662de96572ae8342b341c4ddd06c78db0d7840c912e541b0ad1ee575391fa3abc533c690663c4dc8ae043bc6da6541cbe320b07ea2ec2251e9f58
|
|
7
|
+
data.tar.gz: 5b57a780ba0b2b0b4f206408dd320095e7b1d73efaccc4e03a243c1bb157f1708202b08deb4d4b7a4e65a1a6e70580be2ed2e6f1d107fb0b4658c5553da1b6da
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Capistrano::Magento2 Change Log
|
|
2
|
+
|
|
3
|
+
0.1.3
|
|
4
|
+
==========
|
|
5
|
+
|
|
6
|
+
* Changed magento:cache:varnish:ban to use `:varnish_cache_hosts` array in deploy config vs hardcoding 127.0.0.1:6081
|
|
7
|
+
|
|
8
|
+
0.1.2
|
|
9
|
+
==========
|
|
10
|
+
|
|
11
|
+
* Added information to README file regarding use of terminal-notifier functionality
|
|
12
|
+
|
|
13
|
+
0.1.1
|
|
14
|
+
==========
|
|
15
|
+
|
|
16
|
+
* Initial functional release, tested with Magento 2.0.4 / PHP 7.0.5
|
|
@@ -60,13 +60,18 @@ namespace :magento do
|
|
|
60
60
|
task :ban do
|
|
61
61
|
on release_roles :all do
|
|
62
62
|
next unless any? :ban_pools
|
|
63
|
+
next unless any? :varnish_cache_hosts
|
|
64
|
+
|
|
63
65
|
within release_path do
|
|
64
66
|
for pool in fetch(:ban_pools) do
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
for cache_host in fetch(:varnish_cache_hosts) do
|
|
68
|
+
response = capture :curl, %W{-svk -H 'X-Pool: #{pool}' -X PURGE #{cache_host}}
|
|
69
|
+
if response.include? '<title>200 Purged</title>'
|
|
70
|
+
puts " 200 Purged: #{pool}"
|
|
71
|
+
elsif
|
|
72
|
+
puts "\e[0;31m Warning: Failed to ban '#{pool}' pool on cache host '#{cache_host}'!\n"
|
|
73
|
+
puts "#{response}\n\e[0m\n"
|
|
74
|
+
end
|
|
70
75
|
end
|
|
71
76
|
end
|
|
72
77
|
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.1.
|
|
4
|
+
version: 0.1.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-04-
|
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -75,6 +75,7 @@ extensions: []
|
|
|
75
75
|
extra_rdoc_files: []
|
|
76
76
|
files:
|
|
77
77
|
- ".gitignore"
|
|
78
|
+
- CHANGELOG.md
|
|
78
79
|
- Gemfile
|
|
79
80
|
- LICENSE.md
|
|
80
81
|
- README.md
|