Class: Yast::OtherToolsWarningClient

Inherits:
Client
  • Object
show all
Defined in:
library/commandline/src/clients/other_tools_warning.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'library/commandline/src/clients/other_tools_warning.rb', line 36

def main
  Yast.import "Popup"
  textdomain "base"

  if WFM.Args().include? "chef"
    # Translators: a warning message in a continue-cancel question
    # Opscode Chef is a different way to configure the system.
    message = _(
      "Chef Client is running. The changes that you make\n" \
        "may be overridden by Chef later.\n" \
        "Continue configuration with YaST?"
    )
    return Popup.ContinueCancel(message)
  end

  nil
end