Created
April 27, 2017 07:38
-
-
Save thisismydesign/1e604bbd45fc94295077f2c2cbf726ff to your computer and use it in GitHub Desktop.
Ruby Rake task: check if source can be required locally
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
relative_entry_point = 'lib/...' | |
desc "Check if source can be required locally" | |
task :require do | |
sh "ruby -e \"require '#{File.dirname __FILE__}/#{relative_entry_point}'\"" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment