Last active
September 16, 2018 11:25
-
-
Save colby-swandale/cd51b458df2a7755b2a2810269190ac4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_bundle_variables | |
begin | |
ENV["BUNDLE_BIN_PATH"] = Bundler.rubygems.bin_path("bundler", "bundle", VERSION) | |
rescue Gem::GemNotFoundException | |
ENV["BUNDLE_BIN_PATH"] = File.expand_path("../../../exe/bundle", __FILE__) | |
end | |
# Set BUNDLE_GEMFILE | |
ENV["BUNDLE_GEMFILE"] = find_gemfile.to_s | |
ENV["BUNDLER_VERSION"] = Bundler::VERSION | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment