wordpress-capistrano 0.3.1 → 0.4.0
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 +4 -4
- data/README.md +4 -0
- data/lib/capistrano/tasks/wordpress.rake +16 -3
- data/wordpress-capistrano.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bae73e4867e9af900ea1e26193db0e7a6190d84
|
4
|
+
data.tar.gz: 76e7a699e2879ce0e72c81498063a126206492b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f85fe898d1ea562a889963932de5bfd1e7e46a5188bb414a5c611017a18bd68ed67069465ddf22f8aba777ca6b678f3314e2f696a0eb12f474b3eee8c1e1434
|
7
|
+
data.tar.gz: 4211273b7c778d35313817ff4944263040d9bee7091227214236d8c1174b99d4399f75068e428fadd972b640271bc2c232d10b6adf8ae631dce112eec6974e5b
|
data/README.md
CHANGED
@@ -33,6 +33,8 @@ require 'capistrano/wordpress'
|
|
33
33
|
* wordpress:db:pull - Exports your remote database and imports it on your local
|
34
34
|
* wordpress:db:deploy - Uploads the <database name>.sql in your version control and imports in on remote
|
35
35
|
* wordpress:uploads:sync - Synchronises your local and remote wp-content/uploads folder so that you have all assets
|
36
|
+
* wordpress:uploads:push - Pushes your local wp-content/uploads folder to the remote.
|
37
|
+
* wordpress:uploads:pull - Pulls the remote wp-content/uploads folder to your local installation.
|
36
38
|
* wordpress:paths - Updates WordPress paths to match latest release folders
|
37
39
|
|
38
40
|
You can run any of these by issuing the following commands..
|
@@ -42,6 +44,8 @@ $ bundle exec cap production wordpress:db:push
|
|
42
44
|
$ bundle exec cap production wordpress:db:pull
|
43
45
|
$ bundle exec cap production wordpress:db:deploy
|
44
46
|
$ bundle exec cap production wordpress:uploads:sync
|
47
|
+
$ bundle exec cap production wordpress:uploads:pull
|
48
|
+
$ bundle exec cap production wordpress:uploads:push
|
45
49
|
$ bundle exec cap production wordpress:paths
|
46
50
|
```
|
47
51
|
|
@@ -87,23 +87,36 @@ namespace :wordpress do
|
|
87
87
|
|
88
88
|
namespace :uploads do
|
89
89
|
|
90
|
-
desc "Synchronise local and remote wp
|
90
|
+
desc "Synchronise local and remote wp-content/uploads folders"
|
91
91
|
task :sync do
|
92
|
+
invoke 'pull'
|
93
|
+
invoke 'push'
|
94
|
+
end
|
92
95
|
|
96
|
+
desc "Pull remote wp-content/uploads folder"
|
97
|
+
task :pull do
|
93
98
|
run_locally do
|
94
99
|
roles(:all).each do |role|
|
95
100
|
user = role.user + "@" if !role.user.nil?
|
96
101
|
execute :rsync, "-avzO #{user}#{role.hostname}:#{release_path}/#{fetch(:wp_uploads)}/ #{fetch(:wp_uploads)}"
|
97
|
-
execute :rsync, "-avzO #{fetch(:wp_uploads)}/ #{user}#{role.hostname}:#{release_path}/#{fetch(:wp_uploads)}"
|
98
102
|
end
|
99
103
|
end
|
104
|
+
end
|
100
105
|
|
106
|
+
desc "Push local wp-content folder to remote wp-content/uploads folder"
|
107
|
+
task :push do
|
108
|
+
run_locally do
|
109
|
+
roles(:all).each do |role|
|
110
|
+
user = role.user + "@" if !role.user.nil?
|
111
|
+
execute :rsync, "-avzO #{fetch(:wp_uploads)}/ #{user}#{role.hostname}:#{release_path}/#{fetch(:wp_uploads)}"
|
112
|
+
end
|
113
|
+
end
|
101
114
|
end
|
102
115
|
|
103
116
|
end
|
104
117
|
|
105
118
|
namespace :content do
|
106
|
-
desc "Synchronise local and remote wp
|
119
|
+
desc "Synchronise local and remote wp-content/uploads folders"
|
107
120
|
task :sync do
|
108
121
|
invoke 'uploads:sync'
|
109
122
|
end
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'wordpress-capistrano'
|
7
|
-
spec.version = '0.
|
7
|
+
spec.version = '0.4.0'
|
8
8
|
spec.authors = ['Craig Morris']
|
9
9
|
spec.email = ['craig.michael.morris@gmail.com']
|
10
10
|
spec.description = %q{Deploy your WordPress projects with Capistrano 3.x}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig Morris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.5.1
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: WordPress support for Capistrano 3.x
|