wp-capistrano3 0.0.28 → 0.0.32

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: 0a98c821bb086e17f0e7f575d50a0500b26d6871c48d060e4e2f491a92367687
4
- data.tar.gz: cda4a6fd4c4f5e5386e88d902cab5116a083cac93c677f9642812cb868f01b4d
3
+ metadata.gz: e871560fba2879cdf3095532cbedc58085b1f429c664c30e9b63ed3de1077185
4
+ data.tar.gz: 876c958268279ddfb829d0a76dd30bbba975777e3763efd1b9d34d11de989f4b
5
5
  SHA512:
6
- metadata.gz: 10f898c1d5966af2b558c037d51e95cef67982456798923df2b81f5f409c7f5e5edbe0a32e5d5db253480b55371ce7dee51811957f5ce14ca0f86bb82ebe597a
7
- data.tar.gz: 89e159484feb520eec4ddeefdbbc3e7290ba185cde6bd483426897e6b4d437067e65ce075780b28f4367582fd6ec792a94a733162f0a0d21c3d845e1c44965b4
6
+ metadata.gz: 05fbee8b4573288c627f9c6594d65c7286b2e8df6eb8cab46f7a0aa7ac891e2b6809d8015f9f52aae7bff401c78a0a95b4fa297977245b588e351055901f1238
7
+ data.tar.gz: 88f5b538b7551e17821dd028142b9768e785af87a03e91770869e6cc7aff02ffd2d636493908a0ce174e79ec70094e848519adf35805efe79fd33d3936a530be
@@ -34,8 +34,8 @@ namespace "wp-capistrano" do
34
34
  jsonPlugins["plugins"].each do |plugin, version|
35
35
  plugginInfo = plugins.detect {|f| f["slug"] == plugin }
36
36
  if(plugginInfo)
37
- plugginInfo[:version] = version
38
- plugginInfo[:status] = "active"
37
+ index = plugins.index(plugginInfo)
38
+ plugins[:index]= {:slug => plugin, :version => version, :status => "active" }
39
39
  else
40
40
  pluginInfo = {:slug => plugin, :version => version, :status => "active" }
41
41
  plugins.push(pluginInfo)
@@ -81,6 +81,12 @@ namespace "wp-capistrano" do
81
81
  info "deactivate #{plugin[:slug]}"
82
82
  end
83
83
  end
84
+
85
+ if( !jsonPlugins["languages"].nil? )
86
+ jsonPlugins["languages"].each do |language|
87
+ execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar language plugin install --all #{language} --path=#{release_path}"
88
+ end
89
+ end
84
90
  end
85
91
  end
86
92
  end
@@ -2,7 +2,7 @@ namespace "wp-capistrano" do
2
2
  desc 'Install plugins dependencies using composer'
3
3
  task :plugins_composer_install do
4
4
  on roles(:app) do
5
- pluginDirectory = "#{release_path}/wp-content/plugins/"
5
+ pluginDirectory = "../app/web/wp-content/plugins/"
6
6
 
7
7
  Dir.foreach(pluginDirectory) { |directory|
8
8
  if (directory != "." and directory != "..")
@@ -3,5 +3,5 @@
3
3
  before 'deploy:updated', 'wp-capistrano:download_wordpress'
4
4
  after 'wp-capistrano:download_wordpress', 'wp-capistrano:install_wordpress'
5
5
  after 'wp-capistrano:install_plugins', 'wp-capistrano:update_wordpress'
6
- after 'wp-capistrano:install_wordpress', 'plugins_composer_install'
7
- after 'plugins_composer_install', 'wp-capistrano:install_plugins'
6
+ after 'wp-capistrano:install_wordpress', 'wp-capistrano:plugins_composer_install'
7
+ after 'wp-capistrano:plugins_composer_install', 'wp-capistrano:install_plugins'
@@ -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.28'
7
+ spec.version = '0.0.32'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano