Skip to content

Instantly share code, notes, and snippets.

@johnmeehan
Created November 17, 2014 22:18
Show Gist options
  • Save johnmeehan/bc8d7a265dc870c18da4 to your computer and use it in GitHub Desktop.
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
# 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