wordpress-capistrano 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf60f94f33769b45df3f359dc86969d27a08924d
4
- data.tar.gz: 396f1035d0522b12be1d53a8cb5ca62bdab44007
3
+ metadata.gz: ed901b1c8b9f7d7638e5ec79b5607961c4d84ea4
4
+ data.tar.gz: 4331769c51174c97771a9cd5f18620ab342dc113
5
5
  SHA512:
6
- metadata.gz: 84388e42c329e1c645aa244779252fafa7afbf814130ba2bc6f4e3ec15943528bf9cc77adf36f786cc574cf54331fd0dfe0869108f0d99f8f0cc9929517dafe7
7
- data.tar.gz: 56e0cc2934b94f262586ea771913317f355bde063240a57c5baf1c5f6ba9bac6c9c4ad275f31d4aaf6f19425ae32d8f86084d5ada07f9ff918452ee91c5c3f58
6
+ metadata.gz: e522f090528aa726428aa8cffa8282df8b790067e04a8df5d14bf340467872d85d7efe2b074fb96a5c8f25e9014acbf1e7311859aa955a21280c0975f9ef936a
7
+ data.tar.gz: 9d9fad23ffefdf1c47ffe06f1c2924021f9b33ebbba9f800665889d02defa2a7ea9ca338af472a5161199bf9b379c98ebc8ef29e0ad42e677aa24a7ecfea3034
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Capistrano::Composer
1
+ # Capistrano::WordPress
2
2
 
3
3
  A set of recipes for working with WordPress (via WP CLI) and Capistrano 3.
4
4
 
@@ -24,15 +24,15 @@ Or install it yourself as:
24
24
  Require the module in your `Capfile`:
25
25
 
26
26
  ```ruby
27
- require 'wordpress/capistrano'
27
+ require 'capistrano/wordpress'
28
28
  ```
29
29
 
30
30
  `wordpress/capistrano` comes with 4 tasks:
31
31
 
32
- * wordpress:db:push
33
- * wordpress:db:pull
34
- * wordpress:db:deploy
35
- * wordpress:content:sync
32
+ * wordpress:db:push - Exports your local database and imports it on remote server
33
+ * wordpress:db:pull - Exports your remote database and imports it on your local
34
+ * wordpress:db:deploy - Uploads the <database name>.sql in your version control and imports in on remote
35
+ * wordpress:uploads:sync - Synchronises your local and remote wp-content/uploads folder so that you have all assets
36
36
 
37
37
  You can run any of these by issuing the following commands..
38
38
 
@@ -40,17 +40,20 @@ You can run any of these by issuing the following commands..
40
40
  $ bundle exec cap production wordpress:db:push
41
41
  $ bundle exec cap production wordpress:db:pull
42
42
  $ bundle exec cap production wordpress:db:deploy
43
- $ bundle exec cap production wordpress:content:sync
43
+ $ bundle exec cap production wordpress:uploads:sync
44
44
  ```
45
45
 
46
46
  None of these tasks are built into the default Capistrano deploy as they are potentially damaging.
47
47
 
48
- To add any of them (I've used wordpress:db:deploy and wordpress:content:sync on sites which I know all content updates are version controlled)
48
+ To add any of them, add the following code into your deploy.rb
49
49
 
50
50
  ```ruby
51
-
51
+ after :updated, 'wordpress:db:deploy'
52
+ after :updated, 'wordpress:uploads:sync'
52
53
  ```
53
54
 
55
+ These are useful on sites where all content is under version control
56
+
54
57
  ### Other Recommended Settings
55
58
 
56
59
  This gem does not have libraries to perform common tasks like symlinking wp-content/uploads or symlinking database
@@ -136,4 +139,4 @@ Also, please ask the owner of the capistrano-wordpress gem to give up his name!
136
139
  ## Credits
137
140
 
138
141
  * https://github.com/herrkris/wordpress-capistrano
139
- * https://github.com/capistrano/composer
142
+ * https://github.com/capistrano/composer
@@ -68,7 +68,7 @@ namespace :wordpress do
68
68
  end
69
69
  end
70
70
 
71
- namespace :content do
71
+ namespace :uploads do
72
72
 
73
73
  desc "Synchronise local and remote wp content folders"
74
74
  task :sync do
@@ -85,6 +85,12 @@ namespace :wordpress do
85
85
 
86
86
  end
87
87
 
88
+ namespace :content do
89
+ desc "Synchronise local and remote wp content folders"
90
+ task :sync do
91
+ invoke 'uploads:sync'
92
+ end
93
+ end
88
94
 
89
95
  end
90
96
 
@@ -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.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ['Craig Morris']
9
9
  spec.email = ['craig.michael.morris@gmail.com']
10
10
  spec.description = %q{WordPress support for 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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Morris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-17 00:00:00.000000000 Z
11
+ date: 2014-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano