-
-
Save ik5/5543040 to your computer and use it in GitHub Desktop.
Allow to execute commands using Ruby that arrives from gem and using Bundler Gemfile
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
$BASE_PATH = File.expand_path(File.dirname(__FILE__) + '/..') | |
# also find your own gem files for the executable | |
$LOAD_PATH.unshift($BASE_PATH + '/lib') | |
require 'bundler' | |
ENV["BUNDLE_GEMFILE"] = $BASE_PATH + '/Gemfile' | |
Bundler.require(:default) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment