capistrano-trellis-bedrock-wpcli 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +10 -10
- data/README.md +8 -7
- data/capistrano-trellis-bedrock-wpcli.gemspec +4 -4
- data/lib/capistrano/tasks/wpdb.rake +2 -2
- data/lib/capistrano/wpcli/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 975dc27e436d04a2032f439b7703b7ded520deb1
|
4
|
+
data.tar.gz: 470ebad6e1f46a720f01be904e0dbb117027f914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d33f3d7fdde663c0205ca206b8725376c0827419a83c9634d5e4805f8f879811827aa19404a3612428fcbac44bf3c58b57cbb2bc4d2c35c8bedf79965a4dfa
|
7
|
+
data.tar.gz: 61987c075a3cc31012b604570e4ffdd7d7fd070a46a774fb48dd69f195b73b53a9404e5ad84a67eeb24bab18edfe74c427b4ff36c28366aaec2fceacfbf3868f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-trellis-bedrock-wpcli (0.0
|
4
|
+
capistrano-trellis-bedrock-wpcli (1.0.0)
|
5
5
|
capistrano (~> 3.6.0)
|
6
|
-
sshkit (~> 1.11.
|
6
|
+
sshkit (~> 1.11.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
airbrussh (1.
|
11
|
+
airbrussh (1.2.0)
|
12
12
|
sshkit (>= 1.6.1, != 1.7.0)
|
13
|
-
capistrano (3.6.
|
13
|
+
capistrano (3.6.1)
|
14
14
|
airbrussh (>= 1.0.0)
|
15
15
|
capistrano-harrow
|
16
16
|
i18n
|
17
17
|
rake (>= 10.0.0)
|
18
18
|
sshkit (>= 1.9.0)
|
19
19
|
capistrano-harrow (0.5.3)
|
20
|
-
i18n (0.
|
20
|
+
i18n (0.8.1)
|
21
21
|
net-scp (1.2.1)
|
22
22
|
net-ssh (>= 2.6.5)
|
23
|
-
net-ssh (
|
23
|
+
net-ssh (4.1.0)
|
24
24
|
rake (11.2.2)
|
25
|
-
sshkit (1.11.
|
25
|
+
sshkit (1.11.5)
|
26
26
|
net-scp (>= 1.1.2)
|
27
27
|
net-ssh (>= 2.8.0)
|
28
28
|
|
@@ -30,9 +30,9 @@ PLATFORMS
|
|
30
30
|
ruby
|
31
31
|
|
32
32
|
DEPENDENCIES
|
33
|
-
bundler (~> 1.12.
|
33
|
+
bundler (~> 1.12.0)
|
34
34
|
capistrano-trellis-bedrock-wpcli!
|
35
|
-
rake (~> 11.2.
|
35
|
+
rake (~> 11.2.0)
|
36
36
|
|
37
37
|
BUNDLED WITH
|
38
|
-
1.12.
|
38
|
+
1.12.6
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Capistrano::WPCLI for Trellis and Bedrock
|
2
2
|
|
3
|
-
[![Dependency Status](https://
|
3
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/itsensoul/capistrano-trellis-bedrock-wpcli.svg)](https://gemnasium.com/github.com/itsensoul/capistrano-trellis-bedrock-wpcli)
|
4
4
|
|
5
5
|
**This project is based on [capistrano-wpcli](https://github.com/lavmeiker/capistrano-wpcli) and works only with Trellis and Bedrock.**
|
6
6
|
|
@@ -12,10 +12,10 @@ Provides command line tools to facilitate WordPress database and uploads deploy
|
|
12
12
|
|
13
13
|
Required gems:
|
14
14
|
|
15
|
-
* `capistrano` (~> 3.6)
|
16
|
-
* `sshkit` (~> 1.11)
|
17
|
-
* `bundler` (~> 1.12)
|
18
|
-
* `rake` (~> 11.2)
|
15
|
+
* `capistrano` (~> 3.6.0)
|
16
|
+
* `sshkit` (~> 1.11.0)
|
17
|
+
* `bundler` (~> 1.12.0)
|
18
|
+
* `rake` (~> 11.2.0)
|
19
19
|
|
20
20
|
These can be installed manually with `gem install <gem name>` but it's highly suggested you use [Bundler](http://bundler.io/) to manage them. Bundler is basically the Ruby equivalent to PHP's Composer. Just as Composer manages your PHP packages/dependencies, Bundler manages your Ruby gems/dependencies. Bundler itself is a Gem and can be installed via `gem install bundler` (sudo may be required).
|
21
21
|
|
@@ -30,6 +30,7 @@ The `Gemfile` in the root of this repo specifies the required Gems (just like `c
|
|
30
30
|
* `Gemfile.lock`
|
31
31
|
* `database.sh`
|
32
32
|
* `uploads.sh`
|
33
|
+
* `VERSION.md` (to know which version of `capistrano-bedrock` are you using)
|
33
34
|
3. Copy the content of `capistrano-bedrock .gitignore` file into the `.gitignore` file of your Bedrock project.
|
34
35
|
4. Copy the following `capistrano-bedrock` files/folders into your `config` directory:
|
35
36
|
* `config/deploy/*`
|
@@ -84,9 +85,9 @@ Here's the list of available options and the defaults for each option to put in
|
|
84
85
|
|
85
86
|
####2. Manage updates
|
86
87
|
|
87
|
-
* `bundle exec cap staging wpcli:uploads:rsync:push` - Pushes the local uploads delta to remote machine using rsync.
|
88
|
+
* `bundle exec cap staging/production wpcli:uploads:rsync:push` - Pushes the local uploads delta to remote machine using rsync.
|
88
89
|
|
89
|
-
* `bundle exec cap staging wpcli:uploads:rsync:pull` - Pulls the remote uploads delta to local machine using rsync.
|
90
|
+
* `bundle exec cap staging/production wpcli:uploads:rsync:pull` - Pulls the remote uploads delta to local machine using rsync.
|
90
91
|
|
91
92
|
## Contributing
|
92
93
|
|
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'capistrano', '~> 3.6'
|
22
|
-
spec.add_dependency 'sshkit', '~> 1.11'
|
21
|
+
spec.add_dependency 'capistrano', '~> 3.6.0'
|
22
|
+
spec.add_dependency 'sshkit', '~> 1.11.0'
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
-
spec.add_development_dependency "rake", "~> 11.2"
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12.0"
|
25
|
+
spec.add_development_dependency "rake", "~> 11.2.0"
|
26
26
|
|
27
27
|
end
|
@@ -57,8 +57,8 @@ namespace :wpcli do
|
|
57
57
|
execute :gunzip, "-c", fetch(:wpcli_local_db_file), ">", local_tmp_file
|
58
58
|
execute :wp, :db, :import, local_tmp_file
|
59
59
|
execute :rm, fetch(:wpcli_local_db_file), local_tmp_file
|
60
|
-
execute :wp, "search-replace", fetch(:wpcli_remote_url), fetch(:wpcli_local_url), fetch(:wpcli_args) || "--all-tables", "--url=" + fetch(:wpcli_remote_url)
|
61
60
|
if fetch(:wpcli_delete_transients) then execute :wp, "transient", "delete-all" end
|
61
|
+
execute :wp, "search-replace", fetch(:wpcli_remote_url), fetch(:wpcli_local_url), fetch(:wpcli_args) || "--all-tables", "--url=" + fetch(:wpcli_remote_url)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
run_locally do
|
@@ -81,8 +81,8 @@ namespace :wpcli do
|
|
81
81
|
execute :gunzip, "-c", fetch(:wpcli_remote_db_file), ">", remote_tmp_file
|
82
82
|
execute :wp, :db, :import, remote_tmp_file
|
83
83
|
execute :rm, fetch(:wpcli_remote_db_file), remote_tmp_file
|
84
|
-
execute :wp, "search-replace", fetch(:wpcli_local_url), fetch(:wpcli_remote_url), fetch(:wpcli_args) || "--all-tables", "--url=" + fetch(:wpcli_local_url)
|
85
84
|
if fetch(:wpcli_delete_transients) then execute :wp, "transient", "delete-all" end
|
85
|
+
execute :wp, "search-replace", fetch(:wpcli_local_url), fetch(:wpcli_remote_url), fetch(:wpcli_args) || "--all-tables", "--url=" + fetch(:wpcli_local_url)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
on roles(:dev) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-trellis-bedrock-wpcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ensoul
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sshkit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.12.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.12.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 11.2.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 11.2.0
|
69
69
|
description: Provides command line tools to facilitate WordPress uploads and database
|
70
70
|
deploy with Trellis and Bedrock.
|
71
71
|
email:
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.6.11
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Simple Capistrano wrapper around WP-CLI for Trellis and Bedrock
|