capistrano-wpcli-multisite 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 02c274ad6a3b2a7cb6016390acf4e51a08e48e46
4
- data.tar.gz: 9f2b1f8a716a610d34d9ce30ee166706d8b6abdc
3
+ metadata.gz: 9688a2f1a99652b9cf449303c95cc2049bb13649
4
+ data.tar.gz: 71f89c5412536f898ff1d44813ad3e8146148b8d
5
5
  SHA512:
6
- metadata.gz: ab4b84e5a0ffced6dac49c96c31e64a22e1d8414941e35e51756c864dbe6a9ea86801868b3c587abf3de05087e21358fbae79c4432c94d5e87b8bba7779ffcc8
7
- data.tar.gz: a5e49f7f5c6b5ec467501df1ca8bc1cd97ba7fd6ce2b832ab60fd30caef02764bcd79d259b12cd13f60cb73afe4546194844ee12173dc811b103b73840300ccd
6
+ metadata.gz: 311bcf24c27c56bb794789e9fcbe21062e3bd958b0c6f0f411527114806b03d81ccedf2beb2a53883dabd151344bd010dc95844d1990395d42ba41ccbaabcf47
7
+ data.tar.gz: 43f680b09f7b05be758bcc616b2adc7b17c2f99034d7ae93bf1a8cd1859bed917ced49c1a1cf22949983f0fec815cf3af1861b9139221cca489c71651c092e27
@@ -64,7 +64,7 @@ namespace :wpcli do
64
64
  if fetch(:wpcli_remote_urls).length == fetch(:wpcli_local_urls).length
65
65
  fetch(:wpcli_remote_urls).each_with_index do |url, i|
66
66
  execute :wp, "search-replace", url, fetch(:wpcli_local_urls)[i], fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
67
- execute :wp, "search-replace", "https://#{url}", "http://#{url}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
67
+ execute :wp, "search-replace", "https://#{fetch(:wpcli_local_urls)[i]}", "http://#{fetch(:wpcli_local_urls)[i]}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
68
68
  end
69
69
  else
70
70
  error = CommandError.new("remote_urls array and local_urls array not the same length")
@@ -88,7 +88,7 @@ namespace :wpcli do
88
88
  if fetch(:wpcli_remote_urls).length == fetch(:wpcli_local_urls).length
89
89
  fetch(:wpcli_remote_urls).each_with_index do |url, i|
90
90
  execute :wp, "search-replace", url, fetch(:wpcli_local_urls)[i], fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
91
- execute :wp, "search-replace", "https://#{url}", "http://#{url}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
91
+ execute :wp, "search-replace", "https://#{fetch(:wpcli_local_urls)[i]}", "http://#{fetch(:wpcli_local_urls)[i]}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
92
92
  end
93
93
  else
94
94
  error = CommandError.new("remote_urls array and local_urls array not the same length")
@@ -126,7 +126,7 @@ namespace :wpcli do
126
126
  if fetch(:wpcli_remote_urls).length == fetch(:wpcli_local_urls).length
127
127
  fetch(:wpcli_local_urls).each_with_index do |url, i|
128
128
  execute :wp, "search-replace", url, fetch(:wpcli_remote_urls)[i], fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
129
- execute :wp, "search-replace", "http://#{url}", "https://#{url}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
129
+ execute :wp, "search-replace", "http://#{fetch(:wpcli_remote_urls)[i]}", "https://#{fetch(:wpcli_remote_urls)[i]}", fetch(:wpcli_args) || "--skip-columns=guid", "--all-tables-with-prefix=wp"
130
130
  end
131
131
  else
132
132
  error = CommandError.new("remote_urls array and local_urls array not the same length")
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Wpcli
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-wpcli-multisite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juancito Arias
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-10-01 00:00:00.000000000 Z
13
+ date: 2021-10-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano