wp-capistrano3 0.0.5 → 0.0.6

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: a8593a1a18682c86eb81ce1af3f9a5dc6e4187db0ff46cb133d5457a7b6c85f7
4
- data.tar.gz: ac95853e70f624b9820105a9aaa7b2dd147d576d2103709e13864a6ca32f816e
3
+ metadata.gz: 815299f7b69807a3a7f4bb5382ef69a6eeefb6446d9931a8d87213345170b56f
4
+ data.tar.gz: aa232b23a2d45adf2cb8abf7f3e3e7234133f1a7dc5833f66563daf80f169aa7
5
5
  SHA512:
6
- metadata.gz: c04c3109d03a94385b49f5b018a2634eb5664830138a8b4f13be58d991bfeb7e4aafdcd5b8b9711ee98c0290027de093d3392000168b4206b56d26decb006d44
7
- data.tar.gz: 040c925479561eea944c090cacbf803b1448b51350bae6cdfc51b2b60b085d7bc99c616550c1c751310622a174da27ff7a5e169aabc98bb829163c21dcc35b8a
6
+ metadata.gz: bd55d213bc3366bddbf066bd05098e64cc1f389470863a1cb65f102900d32869bac876291951eb80b782402c65da405e8cd4c601c9ebbd0e7f99f15e0c04d4dd
7
+ data.tar.gz: 8a9bbd0421ee6a87f265d2638690e69e4f458d1bc8ef1c2af5a932835835bcdacdf6bb6039f4a7bdee5158acb0db48d633ef2266b69360ce4c67826d43d83a7a
@@ -54,21 +54,21 @@ echo -e "\e[32mInstalling plugins ...\e[0m"
54
54
  plugins=($(/usr/local/bin/php /tmp/wp-cli.phar plugin list --path=$current_path |awk '{ print $1 }'))
55
55
  nbPlugins=$((${#plugins[@]} - 1))
56
56
  plugins_status=($(/usr/local/bin/php /tmp/wp-cli.phar plugin list --path=$current_path |awk '{ print $2 }'))
57
+ plugins_versions=($(/usr/local/bin/php /tmp/wp-cli.phar plugin list --path=$current_path |awk '{ print $4 }'))
57
58
  for i in `seq 1 $nbPlugins`;
58
59
  do
59
60
  /usr/local/bin/php /tmp/wp-cli.phar plugin install ${plugins[i]} --path=$new_path
60
61
  echo /usr/local/bin/php /tmp/wp-cli.phar plugin install ${plugins[i]} --path=$new_path
61
62
  if [ ${plugins_status[i]} = "active" ];
62
63
  then
63
- /usr/local/bin/php /tmp/wp-cli.phar plugin activate ${plugins[i]} --path=$new_path
64
+ /usr/local/bin/php /tmp/wp-cli.phar plugin activate ${plugins[i]} --path=$new_path --version=${plugins_versions[i]}
64
65
  else
65
- /usr/local/bin/php /tmp/wp-cli.phar plugin deactivate ${plugins[i]} --path=$new_path
66
+ /usr/local/bin/php /tmp/wp-cli.phar plugin deactivate ${plugins[i]} --path=$new_path --version=${plugins_versions[i]}
66
67
  fi
67
68
  done
68
69
  BASH
69
70
 
70
71
  upload! StringIO.new(bashScript), "/tmp/install_plugins.sh"
71
- execute "/usr/local/bin/php -v"
72
72
  execute "/bin/bash /tmp/install_plugins.sh -c \"#{current_path}\" -n #{release_path}"
73
73
  end
74
74
  end
@@ -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.5'
7
+ spec.version = '0.0.6'
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.2.15
97
+ rubygems_version: 3.1.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Wordpress tasks for Capistrano 3.x