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
CIO_ACTION_ID =
"cio".freeze

Instance Method Summary collapse

Constructor Details

#initializeCIOIgnoreProposal

Returns a new instance of CIOIgnoreProposal



50
51
52
# File 'src/lib/installation/cio_ignore.rb', line 50

def initialize
  textdomain "installation"
end

Instance Method Details

#run(*args) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'src/lib/installation/cio_ignore.rb', line 54

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" => _("Blacklist Devices"),
      # this is a menu entry
      "menu_title"      => _("B&lacklist Devices"),
      "id"              => CIO_ACTION_ID
    }
  when "AskUser"
    edit param["chosen_id"]
  else
    raise "Uknown action passed as first parameter"
  end
end