• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yast / yast-installation / 8705582428

16 Apr 2024 12:27PM UTC coverage: 40.913% (-0.2%) from 41.105%
8705582428

Pull #1114

github

shundhammer
Version bump and change log
Pull Request #1114: WIP: Handle autoinst AND autoupgrade (bsc#1222153)

0 of 1 new or added line in 1 file covered. (0.0%)

95 existing lines in 13 files now uncovered.

4489 of 10972 relevant lines covered (40.91%)

6.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/lib/installation/widgets/console_button.rb
1
# ------------------------------------------------------------------------------
2
# Copyright (c) 2021 SUSE LLC, All Rights Reserved.
3
#
4
# This program is free software; you can redistribute it and/or modify it under
5
# the terms of version 2 of the GNU General Public License as published by the
6
# Free Software Foundation.
7
#
8
# This program is distributed in the hope that it will be useful, but WITHOUT
9
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
# ------------------------------------------------------------------------------
12

UNCOV
13
require "English"
×
UNCOV
14
require "yast"
×
UNCOV
15
require "cwm/widget"
×
16

UNCOV
17
Yast.import "UI"
×
18

UNCOV
19
module Installation
×
UNCOV
20
  module Widgets
×
21
    # A CWM button for starting the installer configuration dialog
UNCOV
22
    class ConsoleButton < CWM::PushButton
×
23
      # constructor
24
      # @param focused_widget [CWM::Widget,nil] widget which should have
25
      # the initial focus
UNCOV
26
      def initialize(focused_widget = nil)
×
UNCOV
27
        super()
×
UNCOV
28
        textdomain "installation"
×
UNCOV
29
        @focus = focused_widget
×
UNCOV
30
      end
×
31

UNCOV
32
      def init
×
33
        # set the focus (only in text mode, in GUI the focus does not change
34
        # after displaying the button)
35
        @focus.focus if @focus && Yast::UI.TextMode
×
UNCOV
36
      end
×
37

UNCOV
38
      def label
×
39
        # use an hamburger icon to make the button as small as possible
40
        "☰"
×
UNCOV
41
      end
×
42

UNCOV
43
      def handle
×
44
        require "installation/console/menu"
×
45
        ::Installation::Console::Menu.new.run
×
46
        # ignore the console menu result, force refreshing the dialog
47
        # to activate possible changes
48
        :redraw
×
UNCOV
49
      end
×
UNCOV
50
    end
×
UNCOV
51
  end
×
UNCOV
52
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc