capistrano-cul 0.3.2 → 0.3.3
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 +1 -0
- data/VERSION +1 -1
- data/lib/capistrano/tasks/wp/deploy.cap +2 -0
- data/lib/capistrano/tasks/wp/install.cap +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50d8c0153adc0398b98d587bde126f299cdedc8700339c42331d87163b9842e3
|
|
4
|
+
data.tar.gz: 6eb49f3abfc755194f3833d65563210d4bc879f7ff93a71d7493bbcca3b72601
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f758050b607bc1e66b27d8dc8ee52f6824fc4f2650f2f5e4a0197786dde6697afb8c33806b9833c4bb43aa9f44bf212c80ace9e028c604b09fbd5e4dc649acf
|
|
7
|
+
data.tar.gz: '09c962e938ddb7339e397a24d09e370694310c4bb4abc7e0916b13ac9078eb11baa285565469e3d77306e0faf85ef7d4fecdcaf52bbd7287e228bf78c2a7e6b7'
|
data/README.md
CHANGED
|
@@ -92,6 +92,7 @@ set :wp_data_path # (string) Path to data directory (outside of wp_docroot) that
|
|
|
92
92
|
set :url # (string) Public website URL
|
|
93
93
|
set :title # (string) Website title
|
|
94
94
|
set :multisite # (boolean) Whether or not this is a multisite wordpress installation
|
|
95
|
+
# set :multisite_type # (string, only required if :multisite is set) Specifies the type of multisite setup. Valid values are 'subdirectories' or 'subdomains.
|
|
95
96
|
set :wp_custom_plugins # (hash) Map of custom plugin file/directory names to repo-relative paths
|
|
96
97
|
set :wp_custom_mu_plugins # (hash) Map of custom MUST-USE plugin file/directory names to repo-relative paths
|
|
97
98
|
set :wp_custom_themes # (hash) Map of custom theme file/directory names to repo-relative paths
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|
|
@@ -14,6 +14,8 @@ namespace :cul do
|
|
|
14
14
|
desc "Verifies that all deployed-related cap variables have been set in the application's deploy config."
|
|
15
15
|
task :require_deploy_cap_variables do
|
|
16
16
|
require_cap_variables!([:branch, :wp_docroot, :multisite])
|
|
17
|
+
# If this is a multisite, then the type of multisite needs to be specified (subdomains or subdirectories)
|
|
18
|
+
require_cap_variables!([:multisite_type]) if fetch(:multisite)
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
desc "Displays a message to the deploying user about how to disable maintenance mode"
|
|
@@ -21,12 +21,17 @@ namespace :cul do
|
|
|
21
21
|
# Drop existing database
|
|
22
22
|
execute :wp, 'db', 'reset', '--yes'
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
install_args = [
|
|
25
|
+
fetch(:multisite) ? 'multisite-install' : 'install',
|
|
25
26
|
"--url='#{fetch(:url)}'",
|
|
26
27
|
"--title='#{fetch(:title)}'",
|
|
27
28
|
"--admin_user='#{fetch(:admin_user)}'",
|
|
28
29
|
"--admin_password='#{fetch(:admin_password)}'",
|
|
29
30
|
"--admin_email='#{fetch(:admin_email)}'"
|
|
31
|
+
]
|
|
32
|
+
install_args << "--subdomains" if fetch(:multisite) && fetch(:multisite_type) == 'subdomains'
|
|
33
|
+
|
|
34
|
+
execute :wp, 'core', *install_args
|
|
30
35
|
end
|
|
31
36
|
end
|
|
32
37
|
end
|
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.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carla Galarza
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2024-10-
|
|
13
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: capistrano
|