module Bundler::SharedHelpers
def set_bundle_variables
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