capistrano-cul 0.0.19 → 0.1.0

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
  SHA1:
3
- metadata.gz: f5d82a7a06ebae390facf636f6505f66d9f8a93c
4
- data.tar.gz: 1a8b7288032a93ce2f9b7b03d42620f084c120ee
3
+ metadata.gz: be86d3f2e7ed2bf08cc3310499ddb72a69733af9
4
+ data.tar.gz: 33484a825862b01895542e3b6520d5b507aadfb9
5
5
  SHA512:
6
- metadata.gz: 655d5ab7c8db37374a8f21d79ecb6f9206e330ca3d6401134915f73c66760f3390f6100388273d14ca225b4c6da9ad38dc1ed151d2cc3cc958550b8580c52203
7
- data.tar.gz: e6dbecd9ea3e373b5ec8a7ed7b0dc2d5f4379bd76fdc2095962e4480bd89792447b43a29a937b77dc6b66e74df9eb9f6a996ca99ba2d7bc5a007cac9f58fba20
6
+ metadata.gz: ab768cd14294a13252a37bca566ab748a60895b376455cd260edb6e646e119727dd84dabe448c48e71e2f4067e85e8b477cdd49bcc9af4017df5450076e054f0
7
+ data.tar.gz: 11ca86fe81eb3b3176dcd0a0bf741bb61c939afff5d7deca52b710043e9cf8cf7301965d4fa826606b7f59ad55557859455ac2d14a3bff0c1b23451478782a2c
data/README.md CHANGED
@@ -54,7 +54,7 @@ require 'capistrano/cul/wp'
54
54
  2. `cap {env} cul:wp:install`
55
55
 
56
56
  Runs a WordPress installation for a newly set up instance and creates a new admin user.
57
- 3. `cap {env} cul:wp:symlink_custom_plugins_and_themes`
57
+ 3. `cap {env} cul:wp:create_symlinks`
58
58
 
59
59
  Creates symlinks for custom plugins and themes as part of a WordPress deployment. Generally run as an `after :deploy` hook.
60
60
  4. `cap {env} cul:wp:searchreplace`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.19
1
+ 0.1.0
@@ -7,7 +7,7 @@ namespace :cul do
7
7
  after 'deploy:starting', 'cul:wp:enable_maintenance_mode'
8
8
 
9
9
  after :deploy, 'cul:wp:deploy:download_cul_allowed_upload_types_plugin'
10
- after :deploy, 'cul:wp:deploy:symlink_custom_plugins_and_themes'
10
+ after :deploy, 'cul:wp:deploy:create_symlinks'
11
11
  after :deploy, 'cul:wp:disable_maintenance_mode'
12
12
 
13
13
  desc "Verifies that all deployed-related cap variables have been set in the application's deploy config."
@@ -39,8 +39,8 @@ namespace :cul do
39
39
  end
40
40
  end
41
41
 
42
- desc "Downloads the cul-allowed-upload-types plugin from its remote web location"
43
- task :symlink_custom_plugins_and_themes do
42
+ desc "Creates all necessary symlinks for a WP deployment"
43
+ task :create_symlinks do
44
44
  on roles(:web) do
45
45
  wp_content_path = File.join(fetch(:wp_docroot), 'wp-content')
46
46
  wp_content_plugin_path = File.join(wp_content_path, 'plugins')
@@ -50,7 +50,7 @@ namespace :cul do
50
50
  ### Create necessary directories
51
51
  execute :mkdir, '-p', wp_content_plugin_path, wp_content_mu_plugin_path, wp_content_themes_path
52
52
 
53
- ### Remove old symlinks in each directory
53
+ ### Remove old symlinks in plugin and theme directories
54
54
  [wp_content_plugin_path, wp_content_mu_plugin_path, wp_content_themes_path].each do |dir|
55
55
  execute :find, dir, '-maxdepth 1', '-type l', '-exec rm {} \;'
56
56
  end
@@ -80,6 +80,12 @@ namespace :cul do
80
80
  execute :ln, '-sf', plugin_file_or_directory_path, File.join(wp_content_mu_plugin_path, plugin_file_or_directory_name)
81
81
  end
82
82
  end
83
+
84
+ ### Add robots.txt symlink if robots.txt file exists in shared directory
85
+ if test "[ -f #{shared_path.join('robots.txt')} ]"
86
+ execute :ln, '-sf', shared_path.join('robots.txt'), File.join(fetch(:wp_docroot), 'robots.txt')
87
+ end
88
+
83
89
  end
84
90
  end
85
91
 
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.19
4
+ version: 0.1.0
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-27 00:00:00.000000000 Z
12
+ date: 2018-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano