knife-ec-backup 2.4.15 → 2.5.3

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: ddb6a9c53f5ef60525564d583b9906c746c3af34b8fe25fe92d8e0f362d1f039
4
- data.tar.gz: '04987273e967c37af6b3738bac962349f07edc5a4db1a0ec13c0004093adc8af'
3
+ metadata.gz: 04d60d691882443cee81667126f9f681d74a57bec9c1aa6891d0ea24d23c0825
4
+ data.tar.gz: 3839aaf3e1266642987da3a8047939bcbf249e4f35e8f637068ac9f228a9ad01
5
5
  SHA512:
6
- metadata.gz: ab40c44efddf1418bf52ed6d329b4e8d4419c927dbdcbfc758440d53b178183747c333c9019bbaec16b59750ec0432e9bf7397bcd651e978445abfe2f4515b4d
7
- data.tar.gz: b5a4137aca897ffcf811e1c96fc87b3ffeb435337ac1aaf1a2301ed9ea0683983da8c1991daa9ce5413d6551453de98e2c99c6f8cb1156420f78a5104d9919e6
6
+ metadata.gz: 3d76b279ecd5178017431e5c0bfad401b40a080ace47b764d70697c426b04ce808b92380d26ab94f5473f743f71e3c16b080a920c2d6acdbffb10f0dcf555ecb
7
+ data.tar.gz: 85876db29caeb5531803fc902ff8ca185b52fb65ac5b3909e591fda18c0af43a483f7cc1d16919ff34978df372254900e78fce3f66e670f65a5125e2c7513cbc
@@ -13,7 +13,11 @@ class Chef
13
13
  require 'chef/chef_fs/config'
14
14
  require 'chef/chef_fs/file_system'
15
15
  require 'chef/chef_fs/file_pattern'
16
- require 'chef/chef_fs/parallelizer'
16
+ begin
17
+ require 'chef/chef_fs/parallelizer'
18
+ rescue LoadError
19
+ require 'chef-utils/parallel_map' unless defined?(ChefUtils::ParallelMap)
20
+ end
17
21
  require_relative '../server'
18
22
  require 'fileutils' unless defined?(FileUtils)
19
23
  end
@@ -125,7 +125,11 @@ class Chef
125
125
  def configure_chef
126
126
  super
127
127
  Chef::Config[:concurrency] = config[:concurrency].to_i if config[:concurrency]
128
- Chef::ChefFS::Parallelizer.threads = (Chef::Config[:concurrency] || 10) - 1
128
+ if defined?(Chef::ChefFS::Parallelizer)
129
+ Chef::ChefFS::Parallelizer.threads = (Chef::Config[:concurrency] || 10) - 1
130
+ elsif defined?(ChefUtils::DefaultThreadPool)
131
+ ChefUtils::DefaultThreadPool.instance.threads = (Chef::Config[:concurrency] || 10) - 1
132
+ end
129
133
  end
130
134
 
131
135
  def org_admin
@@ -34,7 +34,11 @@ class Chef
34
34
  require 'chef/chef_fs/command_line'
35
35
  require 'chef/chef_fs/data_handler/acl_data_handler'
36
36
  require 'securerandom' unless defined?(SecureRandom)
37
- require 'chef/chef_fs/parallelizer'
37
+ begin
38
+ require 'chef/chef_fs/parallelizer'
39
+ rescue LoadError
40
+ require 'chef-utils/parallel_map' unless defined?(ChefUtils::ParallelMap)
41
+ end
38
42
  require_relative '../tsorter'
39
43
  require_relative '../server'
40
44
  end
@@ -1,4 +1,4 @@
1
1
  # when you change this to double quotes, also update .expeditor/update_version.sh
2
2
  module KnifeECBackup
3
- VERSION = '2.4.15'
3
+ VERSION = '2.5.3'
4
4
  end
@@ -3,6 +3,7 @@ require 'chef/knife/ec_restore'
3
3
  require 'fakefs/spec_helpers'
4
4
  require_relative './ec_error_handler_spec'
5
5
  require "chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir"
6
+ require 'net/http'
6
7
 
7
8
  def make_user(username)
8
9
  FileUtils.mkdir_p("/users")
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-ec-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.15
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-17 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '5.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '5.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: '0'
128
+ version: '2.6'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - ">="