Module: Installation::Console

Defined in:
src/lib/installation/console.rb,
src/lib/installation/console/gui.rb,
src/lib/installation/console/tui.rb,
src/lib/installation/console/menu.rb,
src/lib/installation/console/plugins.rb,
src/lib/installation/console/commands.rb,
src/lib/installation/console/menu_plugin.rb,
src/lib/installation/console/plugins/shell_command.rb,
src/lib/installation/console/plugins/console_button.rb

Defined Under Namespace

Modules: Plugins Classes: Commands, Gui, Menu, MenuPlugin, Tui

Class Method Summary collapse

Class Method Details

.runObject

open a console and run an interactive IRB session in it testing in installed system: Y2DIR=./src ruby -I src/lib -r installation/console.rb -e ::Installation::Console.run


54
55
56
57
58
59
60
61
62
63
64
# File 'src/lib/installation/console.rb', line 54

def run
  console = Yast::UI.TextMode ? Console::Tui.new : Console::Gui.new
  console.run do
    commands = Console::Commands.new(console)
    # print the basic help text
    commands.welcome

    # start an IRB session in the context of the "commands" object
    irb(commands)
  end
end