Class: Rodbot::CLI::Commands::Console

Inherits:
Rodbot::CLI::Command show all
Defined in:
lib/rodbot/cli/commands/console.rb

Instance Method Summary collapse

Methods inherited from Rodbot::CLI::Command

#call

Instance Method Details

#rescued_callObject



11
12
13
14
15
16
17
18
19
# File 'lib/rodbot/cli/commands/console.rb', line 11

def rescued_call(**)
  Rodbot.boot
  Rodbot::SERVICES.each { "rodbot/services/#{_1}".constantize }
  require 'irb'
  IRB.setup nil
  IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context
  require 'irb/ext/multi-irb'
  IRB.irb nil, Rodbot
end