wp-capistrano3 0.0.29 → 0.0.33
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: b44bbbfcce02ea1e10d7c71a0e2625e3ba516fbe4e5fa1e2fbbc46fa30881dfd
|
4
|
+
data.tar.gz: cb3ce0c1c91570a89d5eccd2a1e3f792f654435d14243614600e691a20be0319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10d3e5cd237e725b7b326fc28d93168ea292deaebe92c6b1b6223ea301ef9577f0f2ff2e4f030682a48d8b4d7eefe00f6ad667d4c013804c4d1d5317bef8bb8
|
7
|
+
data.tar.gz: 8f24724107f5695f5ee7273b6b1295ff39a13e214e75cbc06c97e0cc8167a9df0e224c9752b084e12ab1f2e813b600e489af4244092bed037d19ca2ed50df5b2
|
@@ -34,14 +34,17 @@ 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)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
+
plugins.each do |plugin|
|
46
|
+
info("slug => #{plugin[:slug]}, version => #{plugin[:version]}, status=> #{plugin[:status]}")
|
47
|
+
end
|
45
48
|
|
46
49
|
if( !jsonPlugins["languages"].nil? )
|
47
50
|
jsonPlugins["languages"].each do |language|
|
@@ -81,6 +84,12 @@ namespace "wp-capistrano" do
|
|
81
84
|
info "deactivate #{plugin[:slug]}"
|
82
85
|
end
|
83
86
|
end
|
87
|
+
|
88
|
+
if( !jsonPlugins["languages"].nil? )
|
89
|
+
jsonPlugins["languages"].each do |language|
|
90
|
+
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar language plugin install --all #{language} --path=#{release_path}"
|
91
|
+
end
|
92
|
+
end
|
84
93
|
end
|
85
94
|
end
|
86
95
|
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 != "..")
|
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.33'
|
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.33
|
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
|