Class: Installation::CIOIgnoreProposal

Inherits:
Object
  • Object
show all
Includes:
Yast::I18n, Yast::Logger
Defined in:
src/lib/installation/cio_ignore.rb

Constant Summary collapse

"cio_enable".freeze
"cio_disable".freeze
"autoconf_enable".freeze
"autoconf_disable".freeze
ACTION_ID =
"cio".freeze

Instance Method Summary collapse

Constructor Details

#initializeCIOIgnoreProposal

Returns a new instance of CIOIgnoreProposal.


73
74
75
# File 'src/lib/installation/cio_ignore.rb', line 73

def initialize
  textdomain "installation"
end

Instance Method Details

#run(*args) ⇒ Object


77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'src/lib/installation/cio_ignore.rb', line 77

def run(*args)
  func = args.first
  param = args[1] || {}

  log.debug "cio ignore proposal client called with #{func} and #{param}"

  case func
  when "MakeProposal"
    proposal_entry
  when "Description"
    {
      # this is a heading
      "rich_text_title" => _("Device Settings"),
      # this is a menu entry
      "menu_title"      => _("Device Settings"),
      "id"              => ACTION_ID
    }
  when "AskUser"
    edit param["chosen_id"]
  else
    raise "Unknown action passed as first parameter"
  end
end