capistrano-wpcli 0.0.3 → 0.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-wpcli (0.0.3)
4
+ capistrano-wpcli (0.0.4)
5
5
  capistrano (>= 3.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -50,6 +50,9 @@ Url of the Wordpress root installation on the local server (used by search-repla
50
50
  * `set :local_tmp_dir`<br/>
51
51
  A local temp dir which is read and writeable. Defaults to `/tmp`.
52
52
 
53
+ * `set :wpcli_args`<br/>
54
+ You can pass arguments directly to WPCLI using this var. For example `--network` for a Wordpress Multisite installation.
55
+
53
56
  ## Contributing
54
57
 
55
58
  1. Fork it ( https://github.com/lavmeiker/capistrano-wpcli/fork )
@@ -10,6 +10,10 @@ namespace :load do
10
10
 
11
11
  # A local temp dir which is read and writeable
12
12
  set :local_tmp_dir, "/tmp"
13
+
14
+ # You can pass arguments directly to WPCLI using
15
+ # this var
16
+ set :wpcli_args, "--skip-columns=guid"
13
17
 
14
18
  # Temporal db dumps path
15
19
  set :wpcli_remote_db_file, "#{fetch(:tmp_dir)}/wpcli_database.sql"
@@ -31,7 +35,7 @@ namespace :wpcli do
31
35
  run_locally do
32
36
  execute :wp, "db import", fetch(:wpcli_local_db_file)
33
37
  execute :rm, "#{fetch(:wpcli_local_db_file)}"
34
- execute :wp, "search-replace", fetch(:wpcli_remote_url), fetch(:wpcli_local_url), "--skip-columns=guid"
38
+ execute :wp, "search-replace", fetch(:wpcli_remote_url), fetch(:wpcli_local_url), fetch(:wpcli_args)
35
39
  end
36
40
  end
37
41
  end
@@ -52,7 +56,7 @@ namespace :wpcli do
52
56
  within release_path do
53
57
  execute :wp, "db import", fetch(:wpcli_remote_db_file)
54
58
  execute :rm, fetch(:wpcli_remote_db_file)
55
- execute :wp, "search-replace", fetch(:wpcli_local_url), fetch(:wpcli_remote_url), "--skip-columns=guid"
59
+ execute :wp, "search-replace", fetch(:wpcli_local_url), fetch(:wpcli_remote_url), fetch(:wpcli_args)
56
60
  end
57
61
  end
58
62
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Wpcli
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-wpcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: 3163576760790071014
97
+ hash: -2867424744216119694
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: 3163576760790071014
106
+ hash: -2867424744216119694
107
107
  requirements: []
108
108
  rubyforge_project:
109
109
  rubygems_version: 1.8.23