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

yast / yast-firewall / 10734245145

06 Sep 2024 07:23AM UTC coverage: 94.948%. Remained the same
10734245145

push

github

lslezak
Clean merge of SP7

1184 of 1247 relevant lines covered (94.95%)

5.84 hits per line

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

75.0
/src/lib/y2firewall/widgets/zone_interfaces_button.rb
1
# Copyright (c) [2018] SUSE LLC
2
#
3
# All Rights Reserved.
4
#
5
# This program is free software; you can redistribute it and/or modify it
6
# under the terms of version 2 of the GNU General Public License as published
7
# by the Free Software Foundation.
8
#
9
# This program is distributed in the hope that it will be useful, but WITHOUT
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12
# more details.
13
#
14
# You should have received a copy of the GNU General Public License along
15
# with this program; if not, contact SUSE LLC.
16
#
17
# To contact SUSE LLC about this file by physical or electronic mail, you may
18
# find current contact information at www.suse.com.
19

20
require "cwm"
1✔
21
require "y2firewall/dialogs/modify_zone_interfaces"
1✔
22
require "y2firewall/ui_state"
1✔
23

24
module Y2Firewall
1✔
25
  module Widgets
1✔
26
    # This button opens a dialog to change the interfaces of the selected zone
27
    class ZoneInterfacesButton < CWM::PushButton
1✔
28
      # Constructor
29
      def initialize
1✔
30
        super()
2✔
31
        textdomain "firewall"
2✔
32
      end
33

34
      def opt
1✔
35
        [:key_F7]
×
36
      end
37

38
      # @macro seeAbstractWidget
39
      def label
1✔
40
        _("C&ustom...")
×
41
      end
42

43
      # @macro seeAbstractWidget
44
      def handle
1✔
45
        result = Dialogs::ModifyZoneInterfaces.run
×
46
        (result == :ok) ? :redraw : nil
×
47
      end
48
    end
49
  end
50
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