wp-capistrano3 0.0.37 → 0.0.39

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: 6eefb117293ba312cd0ebcf70dc41c11d32bd585b907b4ec82031da74f646cff
4
- data.tar.gz: bfecc88f8796bf6515f9c1fb53ffe343dc6ac07ebf1d85c7df4c6007e390e0e1
3
+ metadata.gz: b659de3a0b9306bdd5ebc75c638a9e3065b4ed82edc60f60182186f55523c964
4
+ data.tar.gz: 3b6d2d641e1ef11e5fd82b6483167bce26499e06f410460c2b1aa2de00fc74be
5
5
  SHA512:
6
- metadata.gz: 2597131efaa245a155a4d5b979cc93f9062f0fe160080cd70bd619f1c17577e95e01b6cb9d675c03b90c07b4e4aa264386315a59d2b31939e6138a79ec6ab435
7
- data.tar.gz: '0087ec5b314a120f8b665d2e0bc486e3f0f6b10bb43f287cc97ed653dd8d83e0e8f36a319fd104d7f821a4dd8c9c9ff712c8969be36304bc4376ba7ad3097d20'
6
+ metadata.gz: c0640c86ffd72836b908332cfdc2e2934aa63ece87293af87c88ba563390416397e202a01db5f6212ba9eae6f54d4d2f9fb371f411522f4c51a2ce6436e4c516
7
+ data.tar.gz: 50eed66f78763177d69f4a683ed39e6e3602a043d8e99317d70c898fc251638c22dbfc9e33cf80e45f9dd1f5d8293a8c305ce020a76b8a1183b5a8164c1b97aa
@@ -52,17 +52,17 @@ namespace "wp-capistrano" do
52
52
 
53
53
 
54
54
  plugins.each do |plugin|
55
+ if (plugin[:version] == "uninstall")
56
+ warn "Uninstall pluggin #{plugin[:slug]}"
57
+ next
58
+ end
59
+
55
60
  existingPlugins = capture("/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin search #{plugin[:slug]} --path=#{release_path} --field=slug --per-page=999999")
56
61
  if (existingPlugins.to_s.gsub(/\n/, '|').split("|").include?("#{plugin[:slug]}") == false)
57
62
  warn "Pluggin #{plugin[:slug]} not known in wordpress repository. skip installation"
58
63
  next
59
64
  end
60
65
 
61
- if (plugin[:version] == "uninstall")
62
- warn "Uninstall pluggin #{plugin[:slug]}"
63
- next
64
- end
65
-
66
66
  info "install #{plugin[:slug]}:#{plugin[:version]}"
67
67
  if(plugin[:version]) == "latest"
68
68
  execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --force"
@@ -73,6 +73,10 @@ namespace "wp-capistrano" do
73
73
  end
74
74
  end
75
75
  plugins.each do |plugin|
76
+ if(plugin[:version] == "uninstall")
77
+ warn "Skipping #{plugin[:slug]}"
78
+ next
79
+ end
76
80
  if (plugin[:status] == "active")
77
81
  execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin activate #{plugin[:slug]} --path=#{release_path}"
78
82
  info "activate #{plugin[:slug]}"
@@ -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.37'
7
+ spec.version = '0.0.39'
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.37
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -81,7 +81,7 @@ homepage: https://github.com/nicoren-tangkoko/wp-capistrano
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}
84
- post_install_message:
84
+ post_install_message:
85
85
  rdoc_options: []
86
86
  require_paths:
87
87
  - lib
@@ -96,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.2.15
100
- signing_key:
99
+ rubygems_version: 3.3.15
100
+ signing_key:
101
101
  specification_version: 4
102
102
  summary: Wordpress tasks for Capistrano 3.x
103
103
  test_files: []