summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Schofield <grschofi@progress.com>2022-12-12 20:10:16 -0500
committerGregory Schofield <grschofi@progress.com>2022-12-12 20:10:16 -0500
commit760ccc210a608dd66fa7aa4406e472faef54ea07 (patch)
tree82be45078cf2ff000fbf5e0e35dae9fa0ff3632c
parentfa0a6ff7fcba39f79b06ba0b66d6405e9f4dba3e (diff)
downloadchef-gcs-devel/use-internal-gems-BS-44.tar.gz
Use artifactory rubygems proxygcs-devel/use-internal-gems-BS-44
Signed-off-by: Gregory Schofield <grschofi@progress.com>
-rw-r--r--Gemfile6
-rw-r--r--omnibus/Gemfile6
2 files changed, 10 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index 052b21cf6b..cf681c0fc5 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,8 @@
-source "https://rubygems.org"
+if ENV.fetch("OMNIBUS_USE_INTERNAL_SOURCES", false)
+ source "https://artifactory-internal.ps.chef.co/artifactory/rubygems-proxy"
+else
+ source "https://rubygems.org"
+end
gem "chef", path: "."
diff --git a/omnibus/Gemfile b/omnibus/Gemfile
index a8d16ac939..3f1a561271 100644
--- a/omnibus/Gemfile
+++ b/omnibus/Gemfile
@@ -1,4 +1,8 @@
-source "https://rubygems.org"
+if ENV.fetch("OMNIBUS_USE_INTERNAL_SOURCES", false)
+ source "https://artifactory-internal.ps.chef.co/artifactory/rubygems-proxy"
+else
+ source "https://rubygems.org"
+end
gem "omnibus", github: ENV.fetch("OMNIBUS_GITHUB_REPO", "chef/omnibus"), branch: ENV.fetch("OMNIBUS_GITHUB_BRANCH", "main")