summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-05-10 21:19:24 -0700
committerAndre Arko <andre@arko.net>2014-05-11 09:55:25 +0100
commitaf2075392aa0c712d4270f8e9e79a87a50d377aa (patch)
treedac3fe5fc5256b6ce959644da7d72a71370948b0
parent453cac9e015d86a026ae138749247768298dfd9c (diff)
downloadbundler-af2075392aa0c712d4270f8e9e79a87a50d377aa.tar.gz
put console list _inside_ the console class :tada:
-rw-r--r--lib/bundler/cli.rb8
-rw-r--r--lib/bundler/cli/console.rb5
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 544dfff441..bae7f54641 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -280,16 +280,10 @@ module Bundler
Open.new(options, name).run
end
- CONSOLES = {
- 'pry' => :Pry,
- 'ripl' => :Ripl,
- 'irb' => :IRB,
- }
-
desc "console [GROUP]", "Opens an IRB session with the bundle pre-loaded"
def console(group = nil)
require 'bundler/cli/console'
- Console.new(options, group, CONSOLES).run
+ Console.new(options, group).run
end
desc "version", "Prints the bundler's version information"
diff --git a/lib/bundler/cli/console.rb b/lib/bundler/cli/console.rb
index 8f60a28a63..f52bfb11d8 100644
--- a/lib/bundler/cli/console.rb
+++ b/lib/bundler/cli/console.rb
@@ -1,10 +1,9 @@
module Bundler
class CLI::Console
- attr_reader :options, :group, :consoles
- def initialize(options, group, consoles)
+ attr_reader :options, :group
+ def initialize(options, group)
@options = options
@group = group
- @consoles = consoles
end
def run