wp-capistrano3 0.0.33 → 0.0.34
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: ea1c2bbf6794a459495761c59028b2cd56589a97583f06d044523b0cebf2aa5a
|
4
|
+
data.tar.gz: d52b3c7aa8ec13074f21974deb6f49290932fbec0ba433393b4e2360bd14e44a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ee7297cb7716259a9ed8f38b2ba99886f8f4c015f0fce5d173304ddb8ff48717f86ffb8ca4f3c58f306e0df13f4e17940108ce666a9f153b38eb4afa6a0f4d
|
7
|
+
data.tar.gz: 35521db4af61c5367789f9edbfd240f58ec3ac69378a3ce475cfbaec461c0e5992ed481b23fdf179231137c0ab4607adbc480b279827a7d00ecd8d404d53fbc3
|
@@ -32,19 +32,16 @@ namespace "wp-capistrano" do
|
|
32
32
|
end
|
33
33
|
if( !jsonPlugins["plugins"].nil? )
|
34
34
|
jsonPlugins["plugins"].each do |plugin, version|
|
35
|
-
plugginInfo = plugins.detect {|f| f[
|
35
|
+
plugginInfo = plugins.detect {|f| f[:slug] == plugin }
|
36
36
|
if(plugginInfo)
|
37
|
-
|
38
|
-
|
37
|
+
plugginInfo[:version] = version
|
38
|
+
plugginInfo[: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
|
48
45
|
|
49
46
|
if( !jsonPlugins["languages"].nil? )
|
50
47
|
jsonPlugins["languages"].each do |language|
|
@@ -5,10 +5,12 @@ namespace "wp-capistrano" do
|
|
5
5
|
pluginDirectory = "../app/web/wp-content/plugins/"
|
6
6
|
|
7
7
|
Dir.foreach(pluginDirectory) { |directory|
|
8
|
-
if (directory != "." and directory != "..")
|
8
|
+
if (directory != "." and directory != ".." && File.directory?(pluginDirectory + directory))
|
9
9
|
puts "#################################\n# Plugin #{directory}\n#################################"
|
10
10
|
Dir.chdir(pluginDirectory + directory) do
|
11
11
|
puts
|
12
|
+
info(Dir.exist?(Dir.pwd + '/vendor'))
|
13
|
+
info(File.exist?(Dir.pwd + '/composer.lock'))
|
12
14
|
if (Dir.exist?(Dir.pwd + '/vendor') == false && File.exist?(Dir.pwd + '/composer.lock') == true)
|
13
15
|
puts '=> NEED INSTALL : There is no vendor installed and composer.lock'
|
14
16
|
execute "ls #{release_path}/wp-content/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.34'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Wordpress tasks for Capistrano 3.x}
|