wp-capistrano3 0.0.36 → 0.0.38

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: fb00692e6e291a32e43aafc6e046d55684e12ff208cc0235545d3d4dec9f9c57
4
- data.tar.gz: 3fcda9253fe6b2c03255657b64c833d0e567a493b4defb7bb6b2fcf6ae8a5601
3
+ metadata.gz: 40f206837328d69794d78d494eb166b824cb2b80e0a7f9c332a94353df415eee
4
+ data.tar.gz: 872356e78f1c74cb4f76adde179111bb2d1dfb27b2ac95684802c3bfd7707d6c
5
5
  SHA512:
6
- metadata.gz: 71c38f351cec1f9f898875259c967343de53e0e48c041295d4d266f8e80288c9f474aac2a331bf7fdc40054c1e7aec3de9d682fabd2e7ac74abb6e74b12c52e4
7
- data.tar.gz: fcdbb9a4f222875b00e22ba81589f708c486574409b659c7b5f75664c3e68a9e8313dafe2790798c59c9c72a8fe6addb74b175725fe593467c139276858e9758
6
+ metadata.gz: 1bca3c81c216c2da7f276827e35ba2d2b32fbb063d806ea7ec1d1800fce3e950b671aa3d2dbf346dfccc7e80417a1b84e6c0d2df424cc64b55a60ef1a063f52a
7
+ data.tar.gz: 790e319db40815a549ae574a968fe477a13caa0512ce5d915335076db223e62a0c4f7e7b8ee03f2d78a329952c382754bdbdf672ae44df1c176825416175bba5
@@ -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"
@@ -76,6 +76,8 @@ namespace "wp-capistrano" do
76
76
  if (plugin[:status] == "active")
77
77
  execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin activate #{plugin[:slug]} --path=#{release_path}"
78
78
  info "activate #{plugin[:slug]}"
79
+ elsif(plugin[:status] == "active-network")
80
+ execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin activate #{plugin[:slug]} --path=#{release_path} --network"
79
81
  elsif(plugin[:status] == "inactive")
80
82
  execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin deactivate #{plugin[:slug]} --path=#{release_path}"
81
83
  info "deactivate #{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.36'
7
+ spec.version = '0.0.38'
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.36
4
+ version: 0.0.38
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-22 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: []