Skip to content

Instantly share code, notes, and snippets.

@thisismydesign
Created April 27, 2017 07:38
Show Gist options
  • Save thisismydesign/1e604bbd45fc94295077f2c2cbf726ff to your computer and use it in GitHub Desktop.
Save thisismydesign/1e604bbd45fc94295077f2c2cbf726ff to your computer and use it in GitHub Desktop.
Ruby Rake task: check if source can be required locally
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