wp-capistrano3 0.0.27 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/tasks/install_plugins.rake +6 -0
- data/lib/capistrano/tasks/{install_custom_plugins.rake → plugins_composer_install.rake} +3 -3
- data/lib/capistrano/wp-capistrano/defaults.rb +2 -2
- data/lib/capistrano/wp-capistrano.rb +1 -1
- data/wp-capistrano.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6628e944e3739e5287ba80f5a2e627ad544a521592c1a08448dcd6ce31b2683b
|
4
|
+
data.tar.gz: 287162f0ceca2cf015f02536bbcd4c1f9d8003db20150daf31f9c2f03a9336ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ecd73db1a955a0e9acd9e6cf5f7176b3679fe0e0f38c7c82f1b8578e5bfe3080a6891547ca26f0aeb1d9a46d572ddf848d2e9e76b7ddb13811ec7272ac508c1
|
7
|
+
data.tar.gz: 11e9f9d2d56652542058940c5b24b1361013e02c51c1741461dde179daafffeb03fcba3d5e5363b7cfcc84df8771b663c51d247322d6f56ab7b5c4c7adeb0a30
|
@@ -81,6 +81,12 @@ namespace "wp-capistrano" do
|
|
81
81
|
info "deactivate #{plugin[:slug]}"
|
82
82
|
end
|
83
83
|
end
|
84
|
+
|
85
|
+
if( !jsonPlugins["languages"].nil? )
|
86
|
+
jsonPlugins["languages"].each do |language|
|
87
|
+
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar language plugin install --all #{language} --path=#{release_path}"
|
88
|
+
end
|
89
|
+
end
|
84
90
|
end
|
85
91
|
end
|
86
92
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
namespace "wp-capistrano" do
|
2
|
-
desc 'Install
|
3
|
-
task :
|
2
|
+
desc 'Install plugins dependencies using composer'
|
3
|
+
task :plugins_composer_install do
|
4
4
|
on roles(:app) do
|
5
|
-
pluginDirectory = "
|
5
|
+
pluginDirectory = "../app/web/wp-content/plugins/"
|
6
6
|
|
7
7
|
Dir.foreach(pluginDirectory) { |directory|
|
8
8
|
if (directory != "." and directory != "..")
|
@@ -3,5 +3,5 @@
|
|
3
3
|
before 'deploy:updated', 'wp-capistrano:download_wordpress'
|
4
4
|
after 'wp-capistrano:download_wordpress', 'wp-capistrano:install_wordpress'
|
5
5
|
after 'wp-capistrano:install_plugins', 'wp-capistrano:update_wordpress'
|
6
|
-
after 'wp-capistrano:install_wordpress', '
|
7
|
-
after '
|
6
|
+
after 'wp-capistrano:install_wordpress', 'wp-capistrano:plugins_composer_install'
|
7
|
+
after 'wp-capistrano:plugins_composer_install', 'wp-capistrano:install_plugins'
|
@@ -3,7 +3,7 @@ load File.expand_path("../tasks/download_wordpress.rake", __FILE__)
|
|
3
3
|
load File.expand_path("../tasks/install_wordpress.rake", __FILE__)
|
4
4
|
load File.expand_path("../tasks/update_wordpress.rake", __FILE__)
|
5
5
|
load File.expand_path("../tasks/install_plugins.rake", __FILE__)
|
6
|
-
load File.expand_path("../tasks/
|
6
|
+
load File.expand_path("../tasks/plugins_composer_install.rake", __FILE__)
|
7
7
|
|
8
8
|
namespace :load do
|
9
9
|
task :defaults do
|
data/wp-capistrano.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'wp-capistrano3'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.31'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Wordpress tasks for Capistrano 3.x}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wp-capistrano3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas RENAULT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -69,9 +69,9 @@ files:
|
|
69
69
|
- gemfile
|
70
70
|
- lib/capistrano/tasks/create_wp_config.rake
|
71
71
|
- lib/capistrano/tasks/download_wordpress.rake
|
72
|
-
- lib/capistrano/tasks/install_custom_plugins.rake
|
73
72
|
- lib/capistrano/tasks/install_plugins.rake
|
74
73
|
- lib/capistrano/tasks/install_wordpress.rake
|
74
|
+
- lib/capistrano/tasks/plugins_composer_install.rake
|
75
75
|
- lib/capistrano/tasks/update_wordpress.rake
|
76
76
|
- lib/capistrano/wp-capistrano.rb
|
77
77
|
- lib/capistrano/wp-capistrano/defaults.rb
|