capistrano-cul 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e45a37c83d7409c27a9363783d566178c6c9de89b308ac06fcb75fc062a3d679
4
- data.tar.gz: ed9b25f8a4faf0753ff16f5a8bc3c7447e298559165fef4abb176432b5968fb6
3
+ metadata.gz: b0c6373f3cb8f5fb1e08fd7178806a35fba7a535ef217638a812b9fbcf82cd6d
4
+ data.tar.gz: d2b1d727caa3b241d06afa124a5a7a1f2cc52f9d3dfc64d71423931ba2da302f
5
5
  SHA512:
6
- metadata.gz: '0568d92354d3b8fdf8583ba3b579803813ef27158f4fa6fbf32180f6eff1945c10a60e3f5586785d432daf03be96fad388c63d3c16673ddba86a6688a7daf062'
7
- data.tar.gz: 1d19fe901a4a1307e08a383f062fafae414a9fbebd17d03bb8fb6485913f947f1ec82c9bccc8a360e2832975b5bccce59bca8e493a3f68036c17162970ab06c9
6
+ metadata.gz: 7eb9a9489d37af54f9c135335b478a73b08385d5c85bf786332f0f14ba11a5b56190e49f73a6b8ef8563dbba9c3cd700fd5a5c06aab0cb9a7875e309ba5b5c21
7
+ data.tar.gz: 7c489e2bc527882b7b9ec18c6faa574f2227fbf76be02a556d73ea14c083709929613ca91db8ccd842f654584bf60c0f0697011d0236d9b193f2fe7913b99ed0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.2
@@ -107,7 +107,8 @@ namespace :cul do
107
107
  desc 'Symlink the wp-content wflogs directory to a corresponding directory in /var'
108
108
  task :symlink_wflogs_to_var_directory do
109
109
  wp_docroot_wflogs_path = File.join(fetch(:wp_docroot), 'wp-content', 'wflogs')
110
- local_disk_wflogs_path = File.join(fetch(:local_disk_wflogs_path), wp_docroot_wflogs_path.sub(/^\/opt/, '/var'))
110
+ local_disk_wflogs_path = fetch(:local_disk_wflogs_path, '')
111
+ raise 'Missing required cap variable :local_disk_wflogs_path' unless local_disk_wflogs_path.length.positive?
111
112
 
112
113
  on roles(:web) do
113
114
  # Create target var wflogs dir if it doesn't exist
@@ -16,9 +16,6 @@ namespace :cul do
16
16
  # Destroy and recreate the docroot
17
17
  execute :rm, '-rf', fetch(:wp_docroot), '&&', 'mkdir', fetch(:wp_docroot)
18
18
 
19
- # Create nginx logs directory if it doesn't already exist
20
- execute :mkdir, '-p', deploy_path.join('logs')
21
-
22
19
  # Download and unpack latest version of WP to wp_docroot
23
20
  execute :wp, 'core', ['download', "--version=latest", "--path=#{fetch(:wp_docroot)}"]
24
21
 
@@ -29,9 +26,7 @@ namespace :cul do
29
26
 
30
27
  # Our limited-content wp-config file will only contain the following:
31
28
  # ----------------------------------------------------------
32
- # require dirname(__DIR__) . '/conf/the-real-conf.php';
33
- #
34
- #/* That's all, stop editing! Happy blogging. */
29
+ # require dirname(__DIR__) . '/shared/wp-config-include.php';
35
30
  #
36
31
  #/** WordPress absolute path to the Wordpress directory. */
37
32
  #if ( !defined('ABSPATH') )
@@ -46,8 +41,6 @@ namespace :cul do
46
41
  '\\n' +
47
42
  "require dirname(__DIR__) . '/shared/wp-config-include.php';" +
48
43
  '\\n\\n' +
49
- "/* That's all, stop editing! Happy blogging. */" +
50
- '\\n' +
51
44
  "/** WordPress absolute path to the Wordpress directory. */" +
52
45
  '\\n' +
53
46
  "if ( !defined('ABSPATH') ) { define('ABSPATH', dirname(__FILE__) . '/'); }" +
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.0
4
+ version: 0.3.2
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-10 00:00:00.000000000 Z
13
+ date: 2024-10-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano