capistrano-wpcli 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/lib/capistrano/tasks/wpdb.rake +6 -2
- data/lib/capistrano/wpcli/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
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),
|
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),
|
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
|
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.
|
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:
|
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:
|
106
|
+
hash: -2867424744216119694
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
109
|
rubygems_version: 1.8.23
|