chef-config 15.8.23 → 15.9.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-config/config.rb +12 -6
- data/lib/chef-config/dist.rb +4 -0
- data/lib/chef-config/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d567109bfd4a892e019a2d5cf147441dea0d9cc9c6af4645a2d836b3bc955bb6
|
4
|
+
data.tar.gz: a99c0e9c7f4ba703b7af980960aebee9b69c915aff11fc318b8de19e79c3ed46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0cc00d27d348329252481ad13ba300ed599527b995f0e774fe62277ed6562132c5016096e4afeb60ad2bb56c3d59e9d64da64d79de82cab643769533f3b2502
|
7
|
+
data.tar.gz: ce0ac74ebe93dd11d2806197aeb45271e112a8f2101cd50ca23943daaafdca616ebed3156fb58751866f13b9ac2d4cc19fce0ec1493e826e2e0d25591e55b85a
|
data/lib/chef-config/config.rb
CHANGED
@@ -75,20 +75,20 @@ module ChefConfig
|
|
75
75
|
end
|
76
76
|
|
77
77
|
# On *nix, /etc/chef
|
78
|
-
def self.etc_chef_dir
|
79
|
-
path =
|
78
|
+
def self.etc_chef_dir(is_windows = ChefUtils.windows?)
|
79
|
+
path = is_windows ? c_chef_dir : PathHelper.join("/etc", ChefConfig::Dist::DIR_SUFFIX)
|
80
80
|
PathHelper.cleanpath(path)
|
81
81
|
end
|
82
82
|
|
83
83
|
# On *nix, /var/chef
|
84
|
-
def self.var_chef_dir
|
85
|
-
path =
|
84
|
+
def self.var_chef_dir(is_windows = ChefUtils.windows?)
|
85
|
+
path = is_windows ? c_chef_dir : PathHelper.join("/var", ChefConfig::Dist::DIR_SUFFIX)
|
86
86
|
PathHelper.cleanpath(path)
|
87
87
|
end
|
88
88
|
|
89
89
|
# On *nix, the root of /var/, used to test if we can create and write in /var/chef
|
90
|
-
def self.var_root_dir
|
91
|
-
path =
|
90
|
+
def self.var_root_dir(is_windows = ChefUtils.windows?)
|
91
|
+
path = is_windows ? c_chef_dir : "/var"
|
92
92
|
PathHelper.cleanpath(path)
|
93
93
|
end
|
94
94
|
|
@@ -99,6 +99,12 @@ module ChefConfig
|
|
99
99
|
PathHelper.cleanpath(path)
|
100
100
|
end
|
101
101
|
|
102
|
+
def self.c_opscode_dir
|
103
|
+
drive = windows_installation_drive || "C:"
|
104
|
+
path = PathHelper.join(drive, ChefConfig::Dist::LEGACY_CONF_DIR, ChefConfig::Dist::DIR_SUFFIX)
|
105
|
+
PathHelper.cleanpath(path)
|
106
|
+
end
|
107
|
+
|
102
108
|
# the drive where Chef is installed on a windows host. This is determined
|
103
109
|
# either by the drive containing the current file or by the SYSTEMDRIVE ENV
|
104
110
|
# variable
|
data/lib/chef-config/dist.rb
CHANGED
@@ -15,5 +15,9 @@ module ChefConfig
|
|
15
15
|
|
16
16
|
# The user's configuration directory
|
17
17
|
USER_CONF_DIR = ".chef".freeze
|
18
|
+
|
19
|
+
# The legacy conf folder: C:/opscode/chef. Specifically the "opscode" part
|
20
|
+
# DIR_SUFFIX is appended to it in code where relevant
|
21
|
+
LEGACY_CONF_DIR = "opscode".freeze
|
18
22
|
end
|
19
23
|
end
|
data/lib/chef-config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.9.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-utils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 15.
|
19
|
+
version: 15.9.17
|
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: 15.
|
26
|
+
version: 15.9.17
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-shellout
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|