Module: Yast::ClusterComplexInclude

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_cluster_complex(include_target)



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

def initialize_cluster_complex(include_target)
  textdomain "cluster"

  Yast.import "Label"
  Yast.import "Popup"
  Yast.import "Wizard"
  #import "Wizard_hw";
  Yast.import "Confirm"
  Yast.import "Cluster"


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

- (Object) Modified

Return a modification status

Returns:

  • true if data was modified



46
47
48
# File '../../src/include/cluster/complex.rb', line 46

def Modified
  Cluster.Modified
end

- (Object) PollAbort



55
56
57
# File '../../src/include/cluster/complex.rb', line 55

def PollAbort
  UI.PollInput == :abort
end

- (Object) ReadDialog

Read settings dialog

Returns:

  • abort if aborted andnext otherwise



61
62
63
64
65
66
67
# File '../../src/include/cluster/complex.rb', line 61

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

- (Object) ReallyAbort



50
51
52
53
# File '../../src/include/cluster/complex.rb', line 50

def ReallyAbort
  #    return !Cluster::Modified() || Popup::ReallyAbort(true);
  Popup.ReallyAbort(true)
end

- (Object) WriteDialog

Write settings dialog

Returns:

  • abort if aborted andnext otherwise



71
72
73
74
75
76
# File '../../src/include/cluster/complex.rb', line 71

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