capistrano-cul 0.1.3 → 0.1.4

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: cdebcf86aef0fae21034c7836cdec37520b9451ced233f1d55457e0c47e08f12
4
- data.tar.gz: 15765cdf5ebf2f83e8d8c289609b10ee5c0fe0efdd7e2dc42c448fad2989213c
3
+ metadata.gz: 6f6e4d22c99c28b5c0ddf0b6bc903cc8bd2f7cf0cd562dcf3e625b639fd03241
4
+ data.tar.gz: 28e486f96116d15f3b997f9d740c01cb5cbc5aaf0b5be9f21f60539cff4a07bf
5
5
  SHA512:
6
- metadata.gz: 88dee5e892b3da32efb3402219106a0e7b5869a9b53716eb0b5db79ccb3eb85f18eb46c309f98d84f0aa012a91a22db92b3ccbcc72e3789f75153ad63ea9a4cd
7
- data.tar.gz: 11db6c98a024e06a28d3b37abbfcbf806a6c84dfde9dde55980e0994cd9aff0a57781d56e1c0f855ee1a1ce26f8e557d3710f6fba5817235444921582ebd3e42
6
+ metadata.gz: 17c5ad2506d77ed90bea2549ddb9396d0a792e4a540bdd60f64e6bbb86d0855254bdc243caf770d07a215f4127fb375cac3a94d23421ec73d4c1b891e8f9ba64
7
+ data.tar.gz: edf1aaf1d82b3ff25d8f1cc8fe3de5774c27d8688afb10b28193cd332a4a3a63e42af61dce50648f794d9706a05866ae2f2fb18c15e6a740bf9584da7bc12c31
data/README.md CHANGED
@@ -51,27 +51,35 @@ require 'capistrano/cul/wp'
51
51
  1. `cap {env} cul:wp:setup`
52
52
 
53
53
  Sets up a WordPress docroot and runs deployment; does not install WordPress and does not create any users.
54
+
54
55
  2. `cap {env} cul:wp:install`
55
56
 
56
57
  Runs a WordPress installation for a newly set up instance and creates a new admin user.
58
+
57
59
  3. `cap {env} cul:wp:create_symlinks`
58
60
 
59
61
  Creates symlinks for custom plugins and themes as part of a WordPress deployment. Generally run as an `after :deploy` hook.
62
+
60
63
  4. `cap {env} cul:wp:searchreplace`
61
64
 
62
65
  Runs a search and replace operation on the tables in a WordPress installation.
66
+
63
67
  5. `cap {env} cul:wp:migrate:copy_from`
64
68
 
65
69
  Copies the WordPress installation from one environment to another (e.g. prod to dev)
70
+
66
71
  6. `cap {env} cul:wp:update:core`
67
72
 
68
73
  Updates WordPress core to the latest version.
74
+
69
75
  7. `cap {env} cul:wp:update:plugins`
70
76
 
71
77
  Updates non-repo-managed plugins to the latest version.
78
+
72
79
  8. `cap {env} cul:wp:update:themes`
73
80
 
74
81
  Updates non-repo-managed themes to the latest version.
82
+
75
83
  9. `cap {env} cul:wp:update:all`
76
84
 
77
85
  Updates WordPress core, plugins, and themes (in that order) by calling update:core, update:plugins and update:themes tasks.
@@ -100,6 +108,11 @@ set :wp_custom_plugins, {
100
108
  'custom-plugin-file.php' => 'plugins/custom-plugin-file.php',
101
109
  'custom-plugin-directory' => 'plugins/custom-plugin-directory'
102
110
  }
111
+
112
+ set :additional_plugins_from_remote_zip, [
113
+ 'https://github.com/cul/cf-byline/archive/v1.0.0.zip'
114
+ ]
115
+
103
116
  set :wp_custom_themes, {
104
117
  'mytheme' => 'themes/mytheme'
105
118
  }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -7,6 +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:install_additional_plugins_from_remote_zip'
10
11
  after :deploy, 'cul:wp:deploy:create_symlinks'
11
12
  after :deploy, 'cul:wp:disable_maintenance_mode'
12
13
 
@@ -39,6 +40,20 @@ namespace :cul do
39
40
  end
40
41
  end
41
42
 
43
+ desc "Installs remote http/https-location zip file plugins specified in the :additional_plugins_from_remote_zip variable"
44
+ task :install_additional_plugins_from_remote_zip do
45
+ on roles(:web) do
46
+ within File.join(fetch(:wp_docroot)) do
47
+ plugin_zip_urls = fetch(:additional_plugins_from_remote_zip) || []
48
+ # Make sure that all of the URLs start with http:// or https://
49
+ raise 'Found non-http/https url in :additional_plugins_from_remote_zip' if plugin_zip_urls.detect { |val| val !~ /^https?:\/\// }
50
+ plugin_zip_urls.each do |plugin_url|
51
+ execute :wp, (fetch(:multisite, false) ? "--url=#{fetch(:dest_multisite_domain)}" : ''), 'plugin', 'install', plugin_url, '--force'
52
+ end
53
+ end
54
+ end
55
+ end
56
+
42
57
  desc "Creates all necessary symlinks for a WP deployment"
43
58
  task :create_symlinks do
44
59
  on roles(:web) do
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.1.3
4
+ version: 0.1.4
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: 2019-06-10 00:00:00.000000000 Z
13
+ date: 2020-04-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.3
143
+ rubygems_version: 3.0.8
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Common capistrano tasks shared across projects at CUL