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 +4 -4
- data/lib/chef/knife/ec_backup.rb +5 -1
- data/lib/chef/knife/ec_base.rb +5 -1
- data/lib/chef/knife/ec_restore.rb +5 -1
- data/lib/knife_ec_backup/version.rb +1 -1
- data/spec/chef/knife/ec_restore_spec.rb +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d60d691882443cee81667126f9f681d74a57bec9c1aa6891d0ea24d23c0825
|
4
|
+
data.tar.gz: 3839aaf3e1266642987da3a8047939bcbf249e4f35e8f637068ac9f228a9ad01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d76b279ecd5178017431e5c0bfad401b40a080ace47b764d70697c426b04ce808b92380d26ab94f5473f743f71e3c16b080a920c2d6acdbffb10f0dcf555ecb
|
7
|
+
data.tar.gz: 85876db29caeb5531803fc902ff8ca185b52fb65ac5b3909e591fda18c0af43a483f7cc1d16919ff34978df372254900e78fce3f66e670f65a5125e2c7513cbc
|
data/lib/chef/knife/ec_backup.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/chef/knife/ec_base.rb
CHANGED
@@ -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
|
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
|
-
|
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
|
@@ -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
|
+
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-
|
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: '
|
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: '
|
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: '
|
128
|
+
version: '2.6'
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - ">="
|