Created
July 5, 2018 14:05
-
-
Save riton/21465ee4b23d50ab55e67cbb4ba76d20 to your computer and use it in GitHub Desktop.
ruby dynamically add path to gem load path
This file contains 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
#!/usr/bin/env ruby | |
ENV['GEM_PATH'] = "/path/to/directory" | |
require 'mygem' | |
if __FILE__ == $0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment