Created
November 17, 2014 22:18
-
-
Save johnmeehan/bc8d7a265dc870c18da4 to your computer and use it in GitHub Desktop.
Rake task to open an irb console for a gem you are developing
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
# John Meehan | |
# Rake Task for gem dev | |
# handy for opening a irb console for debugging Ruby Gems in development. | |
# just put this rake task into your rake file | |
# | |
desc "Open an irb console with this gems library" | |
task :console do | |
sh "irb -rubygems -I lib -r MyGemNameHere.rb" | |
end | |
# run with | |
# rake console | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment