Created
May 30, 2015 21:10
-
-
Save leighhalliday/da85b206011851fcac55 to your computer and use it in GitHub Desktop.
To start console in Sinatra
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
desc "start console" | |
task :console do | |
require 'irb' | |
require 'irb/completion' | |
require ::File.expand_path('../config/environment', __FILE__) | |
ARGV.clear | |
IRB.start | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment