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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0c6373f3cb8f5fb1e08fd7178806a35fba7a535ef217638a812b9fbcf82cd6d
4
- data.tar.gz: d2b1d727caa3b241d06afa124a5a7a1f2cc52f9d3dfc64d71423931ba2da302f
3
+ metadata.gz: 50d8c0153adc0398b98d587bde126f299cdedc8700339c42331d87163b9842e3
4
+ data.tar.gz: 6eb49f3abfc755194f3833d65563210d4bc879f7ff93a71d7493bbcca3b72601
5
5
  SHA512:
6
- metadata.gz: 7eb9a9489d37af54f9c135335b478a73b08385d5c85bf786332f0f14ba11a5b56190e49f73a6b8ef8563dbba9c3cd700fd5a5c06aab0cb9a7875e309ba5b5c21
7
- data.tar.gz: 7c489e2bc527882b7b9ec18c6faa574f2227fbf76be02a556d73ea14c083709929613ca91db8ccd842f654584bf60c0f0697011d0236d9b193f2fe7913b99ed0
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.2
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
- execute :wp, 'core', fetch(:multisite) ? 'multisite-install' : 'install',
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.2
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-30 00:00:00.000000000 Z
13
+ date: 2024-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano