summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-02-28 14:53:35 -0800
committerTim Smith <tsmith@chef.io>2019-02-28 14:53:35 -0800
commit4083228670c0520cde6772ec4017968b19b30759 (patch)
treeeac3e2c58349fd01654c5e1e04789b66701aeb85 /omnibus
parentef02957edd5fb851356a30a69bcc049e80ff3277 (diff)
downloadchef-4083228670c0520cde6772ec4017968b19b30759.tar.gz
Allow using a Gemfile.local for omnibus
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/.gitignore3
-rw-r--r--omnibus/Gemfile6
2 files changed, 9 insertions, 0 deletions
diff --git a/omnibus/.gitignore b/omnibus/.gitignore
index a959250f6e..91d2b32b21 100644
--- a/omnibus/.gitignore
+++ b/omnibus/.gitignore
@@ -1,3 +1,5 @@
+binstubs
+.bundle
vendor/bundle
pkg/*
kitchen.local.yml
@@ -9,3 +11,4 @@ vendor/cookbooks
build_timestamp
ldd.out
Berksfile.lock
+Gemfile.local
diff --git a/omnibus/Gemfile b/omnibus/Gemfile
index c02cb35c92..99dc856a4d 100644
--- a/omnibus/Gemfile
+++ b/omnibus/Gemfile
@@ -21,3 +21,9 @@ group :development do
gem "kitchen-vagrant", ">= 1.3.1"
gem "winrm-fs", "~> 1.0"
end
+
+instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
+
+# If you want to load debugging tools into the bundle exec sandbox,
+# add these additional dependencies into Gemfile.local
+eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")