Module: Yast::ReiplComplexInclude

Defined in:
../../src/include/reipl/complex.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_reipl_complex(include_target)



30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File '../../src/include/reipl/complex.rb', line 30

def initialize_reipl_complex(include_target)
  Yast.import "UI"

  textdomain "reipl"

  Yast.import "Label"
  Yast.import "Popup"
  Yast.import "Wizard"
  Yast.import "Confirm"
  Yast.import "Reipl"


  Yast.include include_target, "reipl/helps.rb"
end

- (Object) Modified

Return a modification status

Returns:

  • true if data was modified



47
48
49
# File '../../src/include/reipl/complex.rb', line 47

def Modified
  Reipl.Modified
end

- (Object) PollAbort

Return the abort status

Returns:

  • ture if we should abort



59
60
61
# File '../../src/include/reipl/complex.rb', line 59

def PollAbort
  UI.PollInput == :abort
end

- (Object) ReadDialog

Read settings dialog

Returns:

  • abort if aborted andnext otherwise



65
66
67
68
69
70
71
# File '../../src/include/reipl/complex.rb', line 65

def ReadDialog
  Wizard.RestoreHelp(Ops.get_string(@HELPS, "read", ""))
  # Reipl::AbortFunction = PollAbort;
  return :abort if !Confirm.MustBeRoot
  ret = Reipl.Read
  ret ? :next : :abort
end

- (Object) ReallyAbort

Return if we should really abort or not.

Returns:

  • true if we should abort



53
54
55
# File '../../src/include/reipl/complex.rb', line 53

def ReallyAbort
  !Reipl.Modified || Popup.ReallyAbort(true)
end

- (Object) WriteDialog

Write settings dialog

Returns:

  • abort if aborted andnext otherwise



75
76
77
78
79
80
# File '../../src/include/reipl/complex.rb', line 75

def WriteDialog
  Wizard.RestoreHelp(Ops.get_string(@HELPS, "write", ""))
  # Reipl::AbortFunction = PollAbort;
  ret = Reipl.Write
  ret ? :next : :abort
end