wp-capistrano3 0.0.16 → 0.0.17
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 +4 -2
- 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: cab8932366840e65dfa57fe63d96833a43291f60ce7cf05e06157a458b62035a
|
4
|
+
data.tar.gz: 2e8872fc8a9543cb74d41d53b391c8c5298ae6d3c728b26f72dd81393ba46692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a6d8496fb735009e8e5afa95a62cf122fdacf5d2754df79dc1b8fdb277281ab524f504030b6f988ff912a442ac5c8a6bbb033a99de25d9bc2c6388330e3db7
|
7
|
+
data.tar.gz: f5b1ddbca6ab3e172b1909a049e49cd07aaf0efedef4f3933eb9754ce056fbb00e89313e9f8915dfef25aaaf3ce5a339fe4855a80ff3b24b771bf491b5bf86c6
|
@@ -31,7 +31,7 @@ namespace "wp-capistrano" do
|
|
31
31
|
plugins.push(pluginInfo)
|
32
32
|
end
|
33
33
|
if( !jsonPlugins["plugins"].nil? )
|
34
|
-
jsonPlugins.each do |plugin, version|
|
34
|
+
jsonPlugins["plugins"].each do |plugin, version|
|
35
35
|
plugginInfo = plugins.detect {|f| f["slug"] == plugin }
|
36
36
|
if(plugginInfo)
|
37
37
|
plugginInfo[:version] = version
|
@@ -66,14 +66,16 @@ namespace "wp-capistrano" do
|
|
66
66
|
info "install #{plugin[:slug]}:#{plugin[:version]}"
|
67
67
|
if(plugin[:version]) == "latest"
|
68
68
|
execute "/usr/bin/env php /tmp/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path}"
|
69
|
+
info "install #{plugin[:slug]}"
|
69
70
|
else
|
70
71
|
execute "/usr/bin/env php /tmp/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --version=#{plugin[:version]}"
|
72
|
+
info "install #{plugin[:slug]} #{plugin[:version]}"
|
71
73
|
end
|
72
74
|
end
|
73
75
|
plugins.each do |plugin|
|
74
76
|
if (plugin[:status] == "active")
|
75
77
|
execute "/usr/bin/env php /tmp/wp-cli.phar plugin activate #{plugin[:slug]} --path=#{release_path}"
|
76
|
-
info "activate #{plugin}"
|
78
|
+
info "activate #{plugin[:slug]}"
|
77
79
|
else
|
78
80
|
execute "/usr/bin/env php /tmp/wp-cli.phar plugin deactivate #{plugin[:slug]} --path=#{release_path}"
|
79
81
|
info "deactivate #{plugin[:slug]}"
|
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.17'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Wordpress tasks for Capistrano 3.x}
|