Method: Installation::CIOIgnoreProposal#run

Defined in:
src/lib/installation/cio_ignore.rb

#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