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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d855e981ca189727e91f36ef2f23cd54b0c9f8626826874971746d2ce0392aff
4
- data.tar.gz: f63b6b59c420a08ca172b34808c3bdbe2e299f41c67a601e043ea5da08c84e9f
3
+ metadata.gz: d567109bfd4a892e019a2d5cf147441dea0d9cc9c6af4645a2d836b3bc955bb6
4
+ data.tar.gz: a99c0e9c7f4ba703b7af980960aebee9b69c915aff11fc318b8de19e79c3ed46
5
5
  SHA512:
6
- metadata.gz: 831a382085dc473ee33b8c09adc1ca64b3421d7d5aa544232356ab761548682a203c203e536ae4b86765c2653a912feb8633c8d66b0769accd7d159ee39b3389
7
- data.tar.gz: 637219bf7c47dc0d099f6e3d6e8e08261981e0dd3017a7a4873d91ebd07184060dd89167d30339ba2ed32c375d79feabdac79182f3223b822cc2f17591cc6173
6
+ metadata.gz: d0cc00d27d348329252481ad13ba300ed599527b995f0e774fe62277ed6562132c5016096e4afeb60ad2bb56c3d59e9d64da64d79de82cab643769533f3b2502
7
+ data.tar.gz: ce0ac74ebe93dd11d2806197aeb45271e112a8f2101cd50ca23943daaafdca616ebed3156fb58751866f13b9ac2d4cc19fce0ec1493e826e2e0d25591e55b85a
@@ -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 = ChefUtils.windows? ? c_chef_dir : PathHelper.join("/etc", ChefConfig::Dist::DIR_SUFFIX)
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 = ChefUtils.windows? ? c_chef_dir : PathHelper.join("/var", ChefConfig::Dist::DIR_SUFFIX)
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 = ChefUtils.windows? ? c_chef_dir : "/var"
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
@@ -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
@@ -15,5 +15,5 @@
15
15
 
16
16
  module ChefConfig
17
17
  CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
18
- VERSION = "15.8.23".freeze
18
+ VERSION = "15.9.17".freeze
19
19
  end
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.8.23
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-02-07 00:00:00.000000000 Z
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.8.23
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.8.23
26
+ version: 15.9.17
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-shellout
29
29
  requirement: !ruby/object:Gem::Requirement