mixlib-install 3.5.1 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.expeditor/config.yml +2 -0
- data/CHANGELOG.md +7 -2
- data/Gemfile +1 -0
- data/README.md +10 -0
- data/VERSION +1 -1
- data/lib/mixlib/install/generator/bourne.rb +2 -0
- data/lib/mixlib/install/generator/bourne/scripts/proxy_env.sh +28 -0
- data/lib/mixlib/install/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec3e91b588c14d590bd962b0a5af3b3b2f504f8
|
4
|
+
data.tar.gz: fd7b334717d2a2d550f61687d75483fddb588341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b98bc560c946f95c59a6710c5a677de36628857d2f97a82a7b8cda6233cc28291d114586d3f0e25817749e7c595c3e7cd2ade17e0cdcc6dce1272e370e09e48
|
7
|
+
data.tar.gz: f201ddee0975cb209d0f4f7b7a4e39f57e842cdab5ed629afb35a8325a36195f11efb5cd7e89acd4745914636ff29e8e19e3d809ee1e75be765ae35ae34daade
|
data/.expeditor/config.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
# Mixlib::Install Changes
|
2
2
|
|
3
|
-
<!-- latest_release 3.
|
3
|
+
<!-- latest_release 3.6.0 -->
|
4
|
+
## [v3.6.0](https://github.com/chef/mixlib-install/tree/v3.6.0) (2017-09-15)
|
5
|
+
|
6
|
+
#### Merged Pull Requests
|
7
|
+
- add install.sh proxy support [#242](https://github.com/chef/mixlib-install/pull/242) ([wrightp](https://github.com/wrightp))
|
8
|
+
<!-- latest_release -->
|
9
|
+
|
4
10
|
## [v3.5.1](https://github.com/chef/mixlib-install/tree/v3.5.1) (2017-09-08)
|
5
11
|
|
6
12
|
#### Merged Pull Requests
|
7
13
|
- Return nil when looking up non-existing products [#241](https://github.com/chef/mixlib-install/pull/241) ([adamleff](https://github.com/adamleff))
|
8
14
|
- v3.5.0 [#239](https://github.com/chef/mixlib-install/pull/239) ([wrightp](https://github.com/wrightp))
|
9
15
|
- download url override and checksum updates [#237](https://github.com/chef/mixlib-install/pull/237) ([wrightp](https://github.com/wrightp))
|
10
|
-
<!-- latest_release -->
|
11
16
|
|
12
17
|
## [v3.4.0](https://github.com/chef/mixlib-install/tree/v3.4.0) (2017-08-22)
|
13
18
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -222,6 +222,16 @@ options = {
|
|
222
222
|
Mixlib::Install.new(options).install_command
|
223
223
|
```
|
224
224
|
|
225
|
+
#### Proxies
|
226
|
+
The API uses Ruby's OpenURI module to load proxy environment variables (`http_proxy`, `https_proxy`, `ftp_proxy`, `no_proxy`).
|
227
|
+
|
228
|
+
When `install.sh` and `install.ps1` are executed as standalone scripts the will rely on environment variables to configure proxy settings. The install scripts will not configure proxy settings by default.
|
229
|
+
|
230
|
+
In order to customize the proxy environment variables for generated install scripts they must be set by the `install_command_options` option. Setting these options will override session environment variables.
|
231
|
+
|
232
|
+
Bourne install script (`install.sh`) supports `http_proxy`, `https_proxy`, `ftp_proxy`, and `no_proxy` passed as keys to `install_command_options`.
|
233
|
+
|
234
|
+
Powershell install script (`install.ps1`) supports `http_proxy` passed as a key to `install_command_options`.
|
225
235
|
|
226
236
|
## Development
|
227
237
|
VCR is a tool that helps cache and replay http responses. When these responses change or when you add more tests you might need to update cached responses. Check out [spec_helper.rb](https://github.com/chef/mixlib-install/blob/master/spec/spec_helper.rb) for instructions on how to do this.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.6.0
|
@@ -27,6 +27,7 @@ module Mixlib
|
|
27
27
|
install_command << get_script("script_cli_parameters.sh")
|
28
28
|
install_command << get_script("check_product.sh")
|
29
29
|
install_command << get_script("platform_detection.sh")
|
30
|
+
install_command << get_script("proxy_env.sh")
|
30
31
|
install_command << get_script("fetch_metadata.sh", context)
|
31
32
|
install_command << get_script("fetch_package.sh")
|
32
33
|
install_command << get_script("install_package.sh")
|
@@ -47,6 +48,7 @@ module Mixlib
|
|
47
48
|
install_command << render_variables
|
48
49
|
install_command << get_script("check_product.sh")
|
49
50
|
install_command << get_script("platform_detection.sh")
|
51
|
+
install_command << get_script("proxy_env.sh")
|
50
52
|
install_command << get_script("fetch_metadata.sh")
|
51
53
|
install_command << get_script("fetch_package.sh")
|
52
54
|
install_command << get_script("install_package.sh")
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# All of the download utilities in this script load common proxy env vars.
|
2
|
+
# If variables are set they will override any existing env vars.
|
3
|
+
# Otherwise, default proxy env vars will be loaded by the respective
|
4
|
+
# download utility.
|
5
|
+
|
6
|
+
if test "x$https_proxy" != "x"; then
|
7
|
+
echo "setting https_proxy: $https_proxy"
|
8
|
+
export HTTPS_PROXY=$https_proxy
|
9
|
+
export https_proxy=$https_proxy
|
10
|
+
fi
|
11
|
+
|
12
|
+
if test "x$http_proxy" != "x"; then
|
13
|
+
echo "setting http_proxy: $http_proxy"
|
14
|
+
export HTTP_PROXY=$http_proxy
|
15
|
+
export http_proxy=$http_proxy
|
16
|
+
fi
|
17
|
+
|
18
|
+
if test "x$ftp_proxy" != "x"; then
|
19
|
+
echo "setting ftp_proxy: $ftp_proxy"
|
20
|
+
export FTP_PROXY=$ftp_proxy
|
21
|
+
export ftp_proxy=$ftp_proxy
|
22
|
+
fi
|
23
|
+
|
24
|
+
if test "x$no_proxy" != "x"; then
|
25
|
+
echo "setting no_proxy: $no_proxy"
|
26
|
+
export NO_PROXY=$no_proxy
|
27
|
+
export no_proxy=$no_proxy
|
28
|
+
fi
|
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.
|
4
|
+
version: 3.6.0
|
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: 2017-09-
|
12
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-shellout
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/mixlib/install/generator/bourne/scripts/helpers.sh.erb
|
193
193
|
- lib/mixlib/install/generator/bourne/scripts/install_package.sh
|
194
194
|
- lib/mixlib/install/generator/bourne/scripts/platform_detection.sh
|
195
|
+
- lib/mixlib/install/generator/bourne/scripts/proxy_env.sh
|
195
196
|
- lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
|
196
197
|
- lib/mixlib/install/generator/powershell.rb
|
197
198
|
- lib/mixlib/install/generator/powershell/scripts/get_project_metadata.ps1.erb
|