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: 6628e944e3739e5287ba80f5a2e627ad544a521592c1a08448dcd6ce31b2683b
4
- data.tar.gz: 287162f0ceca2cf015f02536bbcd4c1f9d8003db20150daf31f9c2f03a9336ec
3
+ metadata.gz: 88099740811660d39a68493bb37826e61bd24e60bdedab3114edf37216cbf73a
4
+ data.tar.gz: 5ed367641f0fee535eeeabbca6f5e72cb592640881a4e9184174bfab8b37bc96
5
5
  SHA512:
6
- metadata.gz: 9ecd73db1a955a0e9acd9e6cf5f7176b3679fe0e0f38c7c82f1b8578e5bfe3080a6891547ca26f0aeb1d9a46d572ddf848d2e9e76b7ddb13811ec7272ac508c1
7
- data.tar.gz: 11e9f9d2d56652542058940c5b24b1361013e02c51c1741461dde179daafffeb03fcba3d5e5363b7cfcc84df8771b663c51d247322d6f56ab7b5c4c7adeb0a30
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["slug"] == plugin }
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/"
@@ -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.31'
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.31
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-01-24 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