From 4083228670c0520cde6772ec4017968b19b30759 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 28 Feb 2019 14:53:35 -0800 Subject: Allow using a Gemfile.local for omnibus Signed-off-by: Tim Smith --- omnibus/.gitignore | 3 +++ omnibus/Gemfile | 6 ++++++ 2 files changed, 9 insertions(+) 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") -- cgit v1.2.1