wp-capistrano3 0.0.31 → 0.0.35
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88099740811660d39a68493bb37826e61bd24e60bdedab3114edf37216cbf73a
|
4
|
+
data.tar.gz: 5ed367641f0fee535eeeabbca6f5e72cb592640881a4e9184174bfab8b37bc96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3079c3f784f2347a411da37060d403b3e65586a152986f3928d9be022debd0114fd9769acd6a29906c9b1b53eae65479e0d001d9010e8f2b4ae8884e3052a4
|
7
|
+
data.tar.gz: a799e26ad3710a09dbb1fa0519cfb93cc5f01703c25d6f50fbdc78612c1f14b522925df6dcae80def3db2b94ea478d08b6c1806c07f80008a4215604703008ad
|
@@ -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[
|
35
|
+
plugginInfo = plugins.detect {|f| f[:slug] == plugin }
|
36
36
|
if(plugginInfo)
|
37
37
|
plugginInfo[:version] = version
|
38
38
|
plugginInfo[:status] = "active"
|
@@ -65,10 +65,10 @@ namespace "wp-capistrano" do
|
|
65
65
|
|
66
66
|
info "install #{plugin[:slug]}:#{plugin[:version]}"
|
67
67
|
if(plugin[:version]) == "latest"
|
68
|
-
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path}"
|
68
|
+
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --force"
|
69
69
|
info "install #{plugin[:slug]}"
|
70
70
|
else
|
71
|
-
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --version=#{plugin[:version]}"
|
71
|
+
execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --version=#{plugin[:version]} --force"
|
72
72
|
info "install #{plugin[:slug]} #{plugin[:version]}"
|
73
73
|
end
|
74
74
|
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/"
|
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.35'
|
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.
|
4
|
+
version: 0.0.35
|
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-
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|