wp-capistrano3 0.0.30 → 0.0.34

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: 2118b0443b083c6d32bdbfa3980ac8c0ad2c87ae7339c00c52a129029eb7931d
4
- data.tar.gz: 2e509f86b2583396a91cf5e8f8fb23af2f059c2d726486a71e0e6c2d9afcc49b
3
+ metadata.gz: ea1c2bbf6794a459495761c59028b2cd56589a97583f06d044523b0cebf2aa5a
4
+ data.tar.gz: d52b3c7aa8ec13074f21974deb6f49290932fbec0ba433393b4e2360bd14e44a
5
5
  SHA512:
6
- metadata.gz: f3f98a0c874fbde93445ecac5200eb4cdd14a753cdcd644151ac1a30828a3d58c5cd235528b9cb5ad0aa4fb9cf36bde36bf1c8ad45e1e0ac7dcd6e2da5744a45
7
- data.tar.gz: 4eb8bcb274ac1fee94e53d908728e54056a1e977d9b75c3fb7fddf9eb0b9a65aa7003ba2e1db45fe31f1cc47feb51f480198fdf4c8c8391b9038a7a83da2de83
6
+ metadata.gz: c4ee7297cb7716259a9ed8f38b2ba99886f8f4c015f0fce5d173304ddb8ff48717f86ffb8ca4f3c58f306e0df13f4e17940108ce666a9f153b38eb4afa6a0f4d
7
+ data.tar.gz: 35521db4af61c5367789f9edbfd240f58ec3ac69378a3ce475cfbaec461c0e5992ed481b23fdf179231137c0ab4607adbc480b279827a7d00ecd8d404d53fbc3
@@ -32,7 +32,7 @@ namespace "wp-capistrano" do
32
32
  end
33
33
  if( !jsonPlugins["plugins"].nil? )
34
34
  jsonPlugins["plugins"].each do |plugin, version|
35
- plugginInfo = plugins.detect {|f| f["slug"] == plugin }
35
+ plugginInfo = plugins.detect {|f| f[:slug] == plugin }
36
36
  if(plugginInfo)
37
37
  plugginInfo[:version] = version
38
38
  plugginInfo[:status] = "active"
@@ -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
@@ -5,10 +5,12 @@ namespace "wp-capistrano" do
5
5
  pluginDirectory = "../app/web/wp-content/plugins/"
6
6
 
7
7
  Dir.foreach(pluginDirectory) { |directory|
8
- if (directory != "." and directory != "..")
8
+ if (directory != "." and directory != ".." && File.directory?(pluginDirectory + directory))
9
9
  puts "#################################\n# Plugin #{directory}\n#################################"
10
10
  Dir.chdir(pluginDirectory + directory) do
11
11
  puts
12
+ info(Dir.exist?(Dir.pwd + '/vendor'))
13
+ info(File.exist?(Dir.pwd + '/composer.lock'))
12
14
  if (Dir.exist?(Dir.pwd + '/vendor') == false && File.exist?(Dir.pwd + '/composer.lock') == true)
13
15
  puts '=> NEED INSTALL : There is no vendor installed and composer.lock'
14
16
  execute "ls #{release_path}/wp-content/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.30'
7
+ spec.version = '0.0.34'
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.30
4
+ version: 0.0.34
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