Class: Gempilot::CLI::Commands::Console

Inherits:
Gempilot::CLI::Command show all
Includes:
GemContext
Defined in:
lib/gempilot/cli/commands/console.rb

Overview

Launches an IRB session via the gem’s bin/console script.

Instance Method Summary collapse

Instance Method Details

#runObject



12
13
14
15
16
17
# File 'lib/gempilot/cli/commands/console.rb', line 12

def run
  detect_gem_context
  console_path = find_console_script
  print_console_banner
  Bundler.with_unbundled_env { exec(console_path) }
end