capistrano-cul 0.0.15 → 0.0.16
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/VERSION +1 -1
- data/lib/capistrano/tasks/wp/migrate.cap +5 -2
- data/lib/capistrano/tasks/wp.cap +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43528808ac1be50e53b5b2eab140d2ab8896d4f8
|
|
4
|
+
data.tar.gz: e7fb210a1bab9a31cbed5d2a6d28cc52748c5a5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e9e616d5701adaa848af2cd3004fcfd033b3baa6d61687db9fb58641abb0712d97a050f9098e4a55cc830db188879ea234da0b83ea7d22c3dc1c4b593a4868a
|
|
7
|
+
data.tar.gz: 13f3398b463ef55024061e6ec2fd399f1fc03ac671ea64cdb1c1976bf1c4f27db37fe715f4a723f668164fa4655057ac5f568db2a54701355427d391e062ceaf
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.16
|
|
@@ -67,14 +67,14 @@ namespace :cul do
|
|
|
67
67
|
# EXCLUDE plugins, themes, mu-plugins, uploads, and blogs.dir
|
|
68
68
|
"-not \\( -path './plugins/*' -o -path './mu-plugins/*' -o -path './themes/*' -o -path './uploads/*' -o -path './blogs.dir/*' \\) " +
|
|
69
69
|
# EXCLUDE certain unwanted files and paths
|
|
70
|
-
"-a -not \\( -name '.nfs*' -o -name '
|
|
70
|
+
"-a -not \\( -name '.nfs*' -o -name '*.tmp.*' \\) " +
|
|
71
71
|
"-a -not \\( -path '*/.git*' -o -path '*/.svn*' -o -path '*/.hg*' \\) "
|
|
72
72
|
|
|
73
73
|
find_upload_dirs = '. -type f ' +
|
|
74
74
|
# INCLUDE ONLY uploads and blogs.dir
|
|
75
75
|
"\\( -path './uploads/*' -o -path './blogs.dir/*' \\) " +
|
|
76
76
|
# EXCLUDE certain unwanted files and paths
|
|
77
|
-
"-a -not \\( -name '.nfs*' -o -name '
|
|
77
|
+
"-a -not \\( -name '.nfs*' -o -name '*.tmp.*' \\) " +
|
|
78
78
|
"-a -not \\( -path '*/.git*' -o -path '*/.svn*' -o -path '*/.hg*' \\) " +
|
|
79
79
|
# INCLUDE ONLY certain file extensions
|
|
80
80
|
"-a \\( " + JSON.parse(capture(:wp, (fetch(:multisite, false) ? "--url=#{fetch(:source_site_multisite_url)}" : ''), 'eval', '"echo cul_allowed_upload_file_extensions_as_json();"')).map{ |allowed_file_extension|
|
|
@@ -124,6 +124,9 @@ namespace :cul do
|
|
|
124
124
|
|
|
125
125
|
puts 'Copying wp-content. This may take a while for sites with a lot of uploads...'
|
|
126
126
|
|
|
127
|
+
puts 'rsync args:'
|
|
128
|
+
puts rsync_params.join(' ')
|
|
129
|
+
|
|
127
130
|
execute :rsync, *rsync_params
|
|
128
131
|
|
|
129
132
|
# clean up path_to_list_of_files_to_copy file
|
data/lib/capistrano/tasks/wp.cap
CHANGED
|
@@ -77,8 +77,6 @@ namespace :cul do
|
|
|
77
77
|
|
|
78
78
|
wp_content_path = fetch(:wp_content_path)
|
|
79
79
|
|
|
80
|
-
invoke 'deploy' # Deploy before doing setup
|
|
81
|
-
|
|
82
80
|
# Create nginx logs directory if it doesn't already exist
|
|
83
81
|
execute :mkdir, '-p', deploy_path.join('logs')
|
|
84
82
|
|
|
@@ -88,6 +86,8 @@ namespace :cul do
|
|
|
88
86
|
# Make full path to wp_content_path if not exist
|
|
89
87
|
execute :mkdir, '-p', wp_content_path
|
|
90
88
|
|
|
89
|
+
invoke 'deploy' # Deploy before doing setup
|
|
90
|
+
|
|
91
91
|
# If wp_docroot/wp-includes does not exist, do wordpress download
|
|
92
92
|
unless test("[ -d #{File.join(fetch(:wp_docroot), 'wp-includes')} ]")
|
|
93
93
|
# Download and unpack new WP instance to wp_docroot
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-cul
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carla Galarza
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-02-
|
|
12
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|