Module: Rubee::CLI::Console

Defined in:
lib/rubee/cli/console.rb

Class Method Summary collapse

Class Method Details

.call(command, argv) ⇒ Object



7
8
9
# File 'lib/rubee/cli/console.rb', line 7

def call(command, argv)
  send(command, argv)
end

.console(argv) ⇒ Object Also known as: c



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

def console(argv)
  argv.clear
  ENV['RACK_ENV'] ||= 'development'

  begin
    # Start IRB
    IRB.start
  rescue => _e
    IRB.start
  end
end