Module: Yast::CaManagementWizardsInclude

Defined in:
../../src/include/ca-management/wizards.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_ca_management_wizards(include_target)



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File '../../src/include/ca-management/wizards.rb', line 32

def initialize_ca_management_wizards(include_target)
  Yast.import "UI"
  textdomain "ca-management"

  Yast.import "CaMgm"
  Yast.import "Wizard"
  Yast.import "Label"
  Yast.include include_target, "wizard/sequencer.rb"

  Yast.include include_target, "ca-management/popup.rb"
  Yast.include include_target, "ca-management/startup.rb"
  Yast.include include_target, "ca-management/new_cert.rb"
  Yast.include include_target, "ca-management/util.rb"
  Yast.include include_target, "ca-management/new_cert_advanced.rb"
  Yast.include include_target, "ca-management/ca.rb"
  Yast.include include_target, "ca-management/dialog-ca.rb"
end

- (Object) MainSequence

Main workflow of the CA management configuration

Returns:

  • sequence result



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File '../../src/include/ca-management/wizards.rb', line 74

def MainSequence
  aliases = {
    "startup"        => lambda { Startup() },
    "new_certCA"     => lambda { newCASequence },
    "new_certServer" => lambda { newServerCertificateSequence },
    "new_certClient" => lambda { newClientCertificateSequence },
    "ca_main"        => lambda { runCADialog }
  }

  sequence = {
    "ws_start"       => "startup",
    "startup"        => {
      :next       => :abort,
      :createRoot => "new_certCA",
      :enter      => "ca_main",
      :import     => "startup",
      :delete     => "startup"
    },
    "new_certCA"     => { :next => "startup", :abort => "startup" },
    "ca_main"        => {
      :back  => "startup",
      :next  => "startup",
      :abort => "startup"
    },
    "new_certServer" =>
      #				`next       	: "certificate",
      #				`abort		: "certificate",
      {},
    "new_certClient" =>
      #				`next       	: "certificate",
      #				`abort		: "certificate",
      {}
  }

  Wizard.CreateDialog
  Wizard.SetDesktopTitleAndIcon("ca_mgm")
  ret = WizardSequencer(aliases, sequence)

  UI.CloseDialog

  ret
end

- (Object) newCASequence

Creating new Root CA sequence

Returns:

  • sequence result



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File '../../src/include/ca-management/wizards.rb', line 52

def newCASequence
  aliases = {
    "new_certinit"      => lambda { new_cert_init("Root CA") },
    "new_certSaveDef"   => lambda { new_cert_save_default },
    "new_cert1"         => lambda { new_cert1("Root CA") },
    "new_cert2"         => lambda { new_cert2("Root CA") },
    "new_cert3"         => lambda { new_cert3("Root CA") },
    "new_cert_advanced" => lambda { new_cert_advanced(false, "Root CA") }
  }

  Wizard.CreateDialog
  Wizard.SetDesktopTitleAndIcon("ca_mgm")
  ret = WizardSequencer(aliases, CaMgm.certificateSequence)

  UI.CloseDialog

  ret
end