wp-capistrano3 0.0.42 → 0.0.44
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 -10
- data/wp-capistrano.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013be155d6ecc90a0e1c613c999552c1f9ba64ef12bae785b8ff98bb09d8272a
|
4
|
+
data.tar.gz: 3e7594c243aaf834f703d846a49cf1c8d9917bf00e1f4e2627bd345a46f87ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4af6e36120792bfef8feda4df68ecc3969588307b5219cc371c788ae8d24b0e7248a0ffe51e59785580e446fc7fc689c6d8d74abd87cf31e1fa5fe674c26d5
|
7
|
+
data.tar.gz: 01a25b0c8be461b77c765203b1ea5efa6dd182ccc96a30963bbbbeb535fbb71fff4869101081de18cec176ab36e2b30056a28c431b7b6b0abe221aa18b9259a3
|
@@ -13,21 +13,17 @@ namespace "wp-capistrano" do
|
|
13
13
|
|
14
14
|
if(test("[ -L #{current_path} ]"))
|
15
15
|
info "installing pluggins..."
|
16
|
-
installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $
|
17
|
-
|
18
|
-
installedPluginsStatus = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $2 }'")
|
19
|
-
installedPluginsStatusArr = installedPluginsStatus.to_s.gsub(/\n/, '|').split("|")
|
20
|
-
installedPluginsVersion = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $4 }'")
|
21
|
-
installedPluginsVersionArr = installedPluginsVersion.to_s.gsub(/\n/, '|').split("|")
|
22
|
-
|
16
|
+
installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk 'BEGIN{OFS=":"} {print $2,$4,$6,$8}'")
|
17
|
+
|
23
18
|
plugins = []
|
24
19
|
languages = []
|
25
20
|
|
26
|
-
|
27
|
-
if(
|
21
|
+
installedPlugins.each_with_index do |pluginStr, index|
|
22
|
+
if(plugin[0].empty?)
|
28
23
|
next
|
29
24
|
end
|
30
|
-
|
25
|
+
plugin = pluginStr.spit(":");
|
26
|
+
pluginInfo = {:slug => plugin[0], :version => plugin[1], :status => plugin[2] }
|
31
27
|
plugins.push(pluginInfo)
|
32
28
|
end
|
33
29
|
if( !jsonPlugins["plugins"].nil? )
|
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.44'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Wordpress tasks for Capistrano 3.x}
|