Class: Y2Remote::Clients::Proposal

Inherits:
Installation::ProposalClient
  • Object
show all
Includes:
Yast::I18n, Yast::Logger
Defined in:
src/lib/y2remote/clients/proposal.rb

Instance Method Summary collapse

Constructor Details

#initializeProposal

Returns a new instance of Proposal.



31
32
33
34
35
36
37
# File 'src/lib/y2remote/clients/proposal.rb', line 31

def initialize
  super
  Yast.import "UI"
  Yast.import "Wizard"

  textdomain "network"
end

Instance Method Details

#ask_user(_param) ⇒ Object



56
57
58
59
60
61
62
# File 'src/lib/y2remote/clients/proposal.rb', line 56

def ask_user(_param)
  ret = Y2Remote::Dialogs::Remote.new.run

  log.debug("result=#{ret}")

  { "workflow_sequence" => ret }
end

#descriptionObject



39
40
41
42
43
44
45
46
47
# File 'src/lib/y2remote/clients/proposal.rb', line 39

def description
  {
    # RichText label
    "rich_text_title" => _("VNC Remote Administration"),
    # Menu label
    "menu_title"      => _("VNC &Remote Administration"),
    "id"              => "admin_stuff"
  }
end

#make_proposal(attrs) ⇒ Object

create a textual proposal



50
51
52
53
54
# File 'src/lib/y2remote/clients/proposal.rb', line 50

def make_proposal(attrs)
  attrs["force_reset"] ? remote.reset! : remote.propose!

  { "raw_proposal" => [remote.summary] }
end

#writeObject



64
65
66
# File 'src/lib/y2remote/clients/proposal.rb', line 64

def write
  remote.write
end