Skip to content

Commit

Permalink
adding client.rb rubygems_url if exists in knife.rb or Chef::Config[:…
Browse files Browse the repository at this point in the history
…rubygems_url]
  • Loading branch information
Juan Carlos Alonso Holmstron committed Feb 17, 2017
1 parent 7f430a3 commit 97ea8a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/chef/knife/core/windows_bootstrap_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ def config_content
CONFIG
end

# For setting up Chef::Config[:rubygems_url]
# in client.rb for windows runs outside user profile C:\ProgramData

if @chef_config[:rubygems_url]
client_rb << %Q{rubygems_url "#{@chef_config[:rubygems_url]}"\n}
end

escape_and_echo(client_rb)
end

Expand Down

0 comments on commit 97ea8a7

Please sign in to comment.