wp-capistrano3 0.0.28 → 0.0.32
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e871560fba2879cdf3095532cbedc58085b1f429c664c30e9b63ed3de1077185
|
4
|
+
data.tar.gz: 876c958268279ddfb829d0a76dd30bbba975777e3763efd1b9d34d11de989f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05fbee8b4573288c627f9c6594d65c7286b2e8df6eb8cab46f7a0aa7ac891e2b6809d8015f9f52aae7bff401c78a0a95b4fa297977245b588e351055901f1238
|
7
|
+
data.tar.gz: 88f5b538b7551e17821dd028142b9768e785af87a03e91770869e6cc7aff02ffd2d636493908a0ce174e79ec70094e848519adf35805efe79fd33d3936a530be
|
@@ -34,8 +34,8 @@ namespace "wp-capistrano" do
|
|
34
34
|
jsonPlugins["plugins"].each do |plugin, version|
|
35
35
|
plugginInfo = plugins.detect {|f| f["slug"] == plugin }
|
36
36
|
if(plugginInfo)
|
37
|
-
|
38
|
-
|
37
|
+
index = plugins.index(plugginInfo)
|
38
|
+
plugins[:index]= {:slug => plugin, :version => version, :status => "active" }
|
39
39
|
else
|
40
40
|
pluginInfo = {:slug => plugin, :version => version, :status => "active" }
|
41
41
|
plugins.push(pluginInfo)
|
@@ -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
|
@@ -2,7 +2,7 @@ namespace "wp-capistrano" do
|
|
2
2
|
desc 'Install plugins dependencies using composer'
|
3
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', 'plugins_composer_install'
|
7
|
-
after 'plugins_composer_install', 'wp-capistrano:install_plugins'
|
6
|
+
after 'wp-capistrano:install_wordpress', 'wp-capistrano:plugins_composer_install'
|
7
|
+
after 'wp-capistrano:plugins_composer_install', 'wp-capistrano:install_plugins'
|
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.32'
|
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.32
|
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-
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|