Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change chef downloads url #2449

Merged
merged 2 commits into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/supermarket/app/helpers/custom_url_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def chef_docs_url(extra = nil)
end

def chef_downloads_url(extra = nil)
url = ENV["CHEF_DOWNLOADS_URL"] || "https://downloads.#{chef_domain}"
url = ENV["CHEF_DOWNLOADS_URL"] || "https://www.#{chef_domain}/downloads"
extra_dispatch(url, extra)
end

Expand Down
2 changes: 1 addition & 1 deletion src/supermarket/spec/helpers/custom_url_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

describe "downloads url" do
let(:meth) { :chef_downloads_url }
let(:url) { "https://downloads.chef.io" }
let(:url) { "https://www.chef.io/downloads" }

it "should have a downloads url that uses the default domain" do
expect(ENV["CHEF_DOWNLOADS_URL"]).to be_nil
Expand Down