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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 224dcc037895554bd5679293fef66f390ce7cb76
4
- data.tar.gz: bdc66954227ce1851bb604cd0eff7ec23a8a0ad7
3
+ metadata.gz: bec3e91b588c14d590bd962b0a5af3b3b2f504f8
4
+ data.tar.gz: fd7b334717d2a2d550f61687d75483fddb588341
5
5
  SHA512:
6
- metadata.gz: 12ef14553be2d62a37f6b117c8057f40a6eaf88801b4e4b7f819403db452d2c33c4b55c6f55e3b7987c3544e525176c8e12ef249feb1a7d4b0bd3cc0a31146d5
7
- data.tar.gz: 8857e431fb8d93eddabae414f16de27d9be945abe185b339de17ad8bd4eecacc5b0616722e75615e4effdd472866d0668efbb84aa35879cb74e7aa7a26fdeb3f
6
+ metadata.gz: 4b98bc560c946f95c59a6710c5a677de36628857d2f97a82a7b8cda6233cc28291d114586d3f0e25817749e7c595c3e7cd2ade17e0cdcc6dce1272e370e09e48
7
+ data.tar.gz: f201ddee0975cb209d0f4f7b7a4e39f57e842cdab5ed629afb35a8325a36195f11efb5cd7e89acd4745914636ff29e8e19e3d809ee1e75be765ae35ae34daade
@@ -4,6 +4,8 @@ slack:
4
4
  github:
5
5
  maintainer_group: chef/engineering-services
6
6
  version_tag_format: v{{version}}
7
+ minor_bump_labels:
8
+ - "Version: Bump Minor"
7
9
 
8
10
  merge_actions:
9
11
  - built_in:bump_version:
@@ -1,13 +1,18 @@
1
1
  # Mixlib::Install Changes
2
2
 
3
- <!-- latest_release 3.5.1 -->
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
@@ -10,6 +10,7 @@ group :test, :development do
10
10
  gem "addressable", "~> 2.4.0" # ruby 1.9.3
11
11
  gem "aruba", "~> 0.14"
12
12
  gem "cucumber", "~> 1.3.20"
13
+ gem "climate_control"
13
14
  end
14
15
 
15
16
  if RUBY_VERSION =~ /^2/
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.5.1
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
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.5.1"
3
+ VERSION = "3.6.0"
4
4
  end
5
5
  end
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.5.1
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-08 00:00:00.000000000 Z
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