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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e490763327001432ee55aea765914a0a472d859
4
- data.tar.gz: bde350aba1f7a64ee34f63567c7b04d9658e481a
3
+ metadata.gz: e07f9eb98c1eaba3b2aefcb1839d2a46b403a04b
4
+ data.tar.gz: 69547dbde12c91453e71631c4ee25e04c51ec357
5
5
  SHA512:
6
- metadata.gz: d95f824e97db5a6ef423c94d01fc403ecce412998c5b8e413465d28d0efe8a50349e0b8433161a1a2900e129fc024a707e2cf128951b099bb0152883c0b74537
7
- data.tar.gz: 4cf552d4c64fe1a55cf073bc56335b2383ae926cc7b87792dd305611d89e2dafe678b54aecfe3d22d8e704aca4d1c5f1c88b0f1a46f22fdb880bffd560e5b12f
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
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.1.2'
12
+ VERSION = '0.1.3'
13
13
  end
14
14
  end
@@ -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
- response = capture :curl, %W{-svk -H 'X-Pool: #{pool}' -X PURGE 127.0.0.1:6081}
66
- if response.include? '<title>200 Purged</title>'
67
- puts " 200 Purged: #{pool}"
68
- elsif
69
- puts "\e[0;31m Warning: Failed to ban '#{pool}' pool!\n#{response}\n\e[0m\n"
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.2
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-19 00:00:00.000000000 Z
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