Class: Installation::Console::Plugins::ConsoleButton

Inherits:
CWM::PushButton
  • Object
show all
Defined in:
src/lib/installation/console/plugins/console_button.rb

Overview

define a button for starting the command line console

Instance Method Summary collapse

Constructor Details

#initializeConsoleButton

Returns a new instance of ConsoleButton.



24
25
26
27
# File 'src/lib/installation/console/plugins/console_button.rb', line 24

def initialize
  super
  textdomain "installation"
end

Instance Method Details

#handleObject



33
34
35
36
37
# File 'src/lib/installation/console/plugins/console_button.rb', line 33

def handle
  require "installation/console"
  ::Installation::Console.run
  nil
end

#helpObject



39
40
41
42
43
# File 'src/lib/installation/console/plugins/console_button.rb', line 39

def help
  _("<p>The <b>Expert Console</b> button starts a command line interface " \
    "to the installer. It is intended for special purposes, wrong usage " \
    "might result in crash or unexpected behavior.</p>")
end

#labelObject



29
30
31
# File 'src/lib/installation/console/plugins/console_button.rb', line 29

def label
  _("Expert Console...")
end