Module: Yast::SnapperWizardsInclude

Defined in:
../../src/include/snapper/wizards.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_snapper_wizards(include_target)



30
31
32
33
34
35
36
37
38
39
# File '../../src/include/snapper/wizards.rb', line 30

def initialize_snapper_wizards(include_target)
  Yast.import "UI"

  textdomain "snapper"

  Yast.import "Sequencer"
  Yast.import "Wizard"

  Yast.include include_target, "snapper/dialogs.rb"
end

- (Object) MainSequence

Main workflow of the snapper configuration

Returns:

  • sequence result



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File '../../src/include/snapper/wizards.rb', line 43

def MainSequence
  aliases = { "summary" => lambda { SummaryDialog() }, "show" => lambda do
    ShowDialog()
  end }

  sequence = {
    "ws_start" => "summary",
    "summary"  => { :abort => :abort, :next => :next, :show => "show" },
    "show"     => { :abort => :abort, :next => "summary" }
  }

  ret = Sequencer.Run(aliases, sequence)

  deep_copy(ret)
end

- (Object) SnapperSequence

Whole configuration of snapper

Returns:

  • sequence result



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File '../../src/include/snapper/wizards.rb', line 61

def SnapperSequence
  aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda do
    MainSequence()
  end }

  sequence = {
    "ws_start" => "read",
    "read"     => { :abort => :abort, :next => "main" },
    "main"     => { :abort => :abort, :next => :next }
  }

  Wizard.CreateDialog
  Wizard.SetDesktopTitleAndIcon("snapper")
  ret = Sequencer.Run(aliases, sequence)

  UI.CloseDialog
  deep_copy(ret)
end