lib/bundler/cli.rb in bundler-0.9.17 vs lib/bundler/cli.rb in bundler-0.9.18

- old
+ new

@@ -188,9 +188,19 @@ else Bundler.ui.info("To open a bundled gem, set $EDITOR") end end + desc "console [GROUP]", "Opens an IRB session with the bundle pre-loaded" + def console(group = nil) + require 'bundler/setup' + group ? Bundler.require(:default, group) : Bundler.require + ARGV.clear + + require 'irb' + IRB.start + end + desc "version", "Prints the bundler's version information" def version Bundler.ui.info "Bundler version #{Bundler::VERSION}" end map %w(-v --version) => :version