Class: Bundler::Console::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/console.rb

Instance Method Summary collapse

Instance Method Details

#exec(_name, args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/bundler/console.rb', line 10

def exec(_name, args)
  if args.any?
    Bundler.require(:default, *args.map!(&:to_sym))
  else
    Bundler.require
  end

  ARGV.clear
  get_console(Bundler.settings[:console] || 'irb').start
end