mixlib-install 3.12.3 → 3.12.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb233e51e18e929105c7c97d7f1ca060e4dc02bb31c96fe593bdcda077e7f57a
|
4
|
+
data.tar.gz: 874ef20231f17e3bf00a0b5f9a8f6ad6c428793be44a897edb1b878449cdf86e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 267808104df5f1e62d9a11b067ed53f75bf540465b5a1a5065d76dacb7618ba20acc381616a19d287d8dcbc996b2ee94fe53ca5e8f7856512abad827ad69a3c5
|
7
|
+
data.tar.gz: 123e1017d5c41f2a02be2723e8cacda065363ef5bd6f3af858e46c38a0099ead3bf7b8d2a687dbd4206e4986d0798d19f76014f5fc53c096b66a956b956ac793
|
data/lib/mixlib/install.rb
CHANGED
@@ -25,6 +25,7 @@ require_relative "install/options"
|
|
25
25
|
require_relative "install/generator"
|
26
26
|
require_relative "install/generator/bourne"
|
27
27
|
require_relative "install/generator/powershell"
|
28
|
+
require_relative "install/dist"
|
28
29
|
|
29
30
|
module Mixlib
|
30
31
|
class Install
|
@@ -119,7 +120,7 @@ module Mixlib
|
|
119
120
|
# This only works for chef and chefdk but they are the only projects
|
120
121
|
# we are supporting as of now.
|
121
122
|
if options.for_ps1?
|
122
|
-
"$env:systemdrive
|
123
|
+
"$env:systemdrive\\#{Mixlib::Install::Dist::WINDOWS_INSTALL_DIR}\\#{options.product_name}"
|
123
124
|
else
|
124
125
|
"/opt/#{options.product_name}"
|
125
126
|
end
|
@@ -136,7 +137,7 @@ module Mixlib
|
|
136
137
|
# chef-server -> /opt/opscode). But this is OK for now since
|
137
138
|
# chef & chefdk are the only supported products.
|
138
139
|
version_manifest_file = if options.for_ps1?
|
139
|
-
"$env:systemdrive
|
140
|
+
"$env:systemdrive\\#{Mixlib::Install::Dist::WINDOWS_INSTALL_DIR}\\#{options.product_name}\\version-manifest.json"
|
140
141
|
else
|
141
142
|
"/opt/#{options.product_name}/version-manifest.json"
|
142
143
|
end
|
data/lib/mixlib/install/dist.rb
CHANGED
@@ -76,12 +76,6 @@ elif test -f "/usr/bin/sw_vers"; then
|
|
76
76
|
platform="mac_os_x"
|
77
77
|
# Matching the tab-space with sed is error-prone
|
78
78
|
platform_version=`sw_vers | awk '/^ProductVersion:/ { print $2 }' | cut -d. -f1,2`
|
79
|
-
|
80
|
-
# x86_64 Apple hardware often runs 32-bit kernels (see OHAI-63)
|
81
|
-
x86_64=`sysctl -n hw.optional.x86_64`
|
82
|
-
if test $x86_64 -eq 1; then
|
83
|
-
machine="x86_64"
|
84
|
-
fi
|
85
79
|
elif test -f "/etc/release"; then
|
86
80
|
machine=`/usr/bin/uname -p`
|
87
81
|
if grep SmartOS /etc/release >/dev/null; then
|
@@ -19,6 +19,7 @@
|
|
19
19
|
|
20
20
|
require_relative "util"
|
21
21
|
require_relative "generator/powershell"
|
22
|
+
require_relative "dist"
|
22
23
|
require "cgi"
|
23
24
|
|
24
25
|
module Mixlib
|
@@ -83,9 +84,9 @@ module Mixlib
|
|
83
84
|
@sudo_command = "sudo -E"
|
84
85
|
|
85
86
|
@root = if powershell
|
86
|
-
"$env:systemdrive
|
87
|
+
"$env:systemdrive\\#{Mixlib::Install::Dist::WINDOWS_INSTALL_DIR}\\#{Mixlib::Install::Dist::DEFAULT_PRODUCT}"
|
87
88
|
else
|
88
|
-
"
|
89
|
+
"#{Mixlib::Install::Dist::LINUX_INSTALL_DIR}/#{Mixlib::Install::Dist::DEFAULT_PRODUCT}"
|
89
90
|
end
|
90
91
|
|
91
92
|
parse_opts(opts)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.12.
|
4
|
+
version: 3.12.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-shellout
|