wp-capistrano3 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff2c58a3b43c9cd1edeaab949816dfdf6013f3697db5a8a1d63d5ddbd0366efc
4
- data.tar.gz: a57872fe96afbd6aa45610a3a7aa76f2519fcb6394bc087ca0c6a2e7aaab9e46
3
+ metadata.gz: cab8932366840e65dfa57fe63d96833a43291f60ce7cf05e06157a458b62035a
4
+ data.tar.gz: 2e8872fc8a9543cb74d41d53b391c8c5298ae6d3c728b26f72dd81393ba46692
5
5
  SHA512:
6
- metadata.gz: e7ce10075342bc37df272280adaeea1461db31ec8674867796d9666e73c7a870fc17633d6f5e0d71a92d67579b237ec91c6e88a80aac042df3dafee5efc114ff
7
- data.tar.gz: cc7d54beeb8258d52b4ded60d45bbab569387635a9f1729aaeeac043448786747fd23913bc923bf0eb19bc5df5e4878fe9ac24e00362fb10e00c7b34449f0062
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]}"
@@ -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.16'
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT