From 6e2994f9ab739ab210aba86cc809a5582b9e0ade Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Thu, 26 Jan 2017 13:14:30 +0100 Subject: [PATCH] Please RuboCop with whitespace. --- src/lib/installation/clients/inst_casp_overview.rb | 4 ++-- src/lib/installation/widgets/mocked.rb | 1 - src/lib/installation/widgets/overview.rb | 10 +++++----- src/lib/installation/widgets/system_role.rb | 5 +---- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/lib/installation/clients/inst_casp_overview.rb b/src/lib/installation/clients/inst_casp_overview.rb index c1e8d68f3..c58358a63 100644 --- a/src/lib/installation/clients/inst_casp_overview.rb +++ b/src/lib/installation/clients/inst_casp_overview.rb @@ -102,13 +102,13 @@ def quadrant_layout(upper_left:, lower_left:, upper_right:, lower_right:) def content dashboard = Installation::Widgets::DashboardPlace.new quadrant_layout( - upper_left: VBox( + upper_left: VBox( ::Widgets::RegistrationCode.new, ::Users::PasswordWidget.new(little_space: true), # use english us as default keyboard layout ::Y2Country::Widgets::KeyboardSelectionCombo.new("english-us") ), - lower_left: VBox( + lower_left: VBox( Installation::Widgets::SystemRole.new(dashboard), dashboard, Tune::Widgets::SystemInformation.new diff --git a/src/lib/installation/widgets/mocked.rb b/src/lib/installation/widgets/mocked.rb index f8fc84430..503207e59 100644 --- a/src/lib/installation/widgets/mocked.rb +++ b/src/lib/installation/widgets/mocked.rb @@ -15,4 +15,3 @@ def label end end end - diff --git a/src/lib/installation/widgets/overview.rb b/src/lib/installation/widgets/overview.rb index 18cb477d4..eea5136d1 100644 --- a/src/lib/installation/widgets/overview.rb +++ b/src/lib/installation/widgets/overview.rb @@ -51,10 +51,10 @@ def label def items d = Yast::WFM.CallFunction(proposal_client, - [ - "MakeProposal", - {"simple_mode" => true} - ]) + [ + "MakeProposal", + { "simple_mode" => true } + ]) d["label_proposal"] end @@ -63,7 +63,7 @@ def handle(_event) :redraw end - private + private def button_id # an arbitrary unique id diff --git a/src/lib/installation/widgets/system_role.rb b/src/lib/installation/widgets/system_role.rb index ad63fd073..1dc5f1fde 100644 --- a/src/lib/installation/widgets/system_role.rb +++ b/src/lib/installation/widgets/system_role.rb @@ -26,7 +26,6 @@ Yast.import "ProductControl" Yast.import "ProductFeatures" - module Installation module Widgets class DashboardURL < CWM::InputField @@ -98,7 +97,7 @@ def items def help Yast::ProductControl.GetTranslatedText("roles_help") + "\n\n" + - roles_description.map { |r| r[:label] + "\n\n" + r[:description]}.join("\n\n\n") + roles_description.map { |r| r[:label] + "\n\n" + r[:description] }.join("\n\n\n") end NON_OVERLAY_ATTRIBUTES = [ @@ -107,7 +106,6 @@ def help ].freeze private_constant :NON_OVERLAY_ATTRIBUTES - def store log.info "Applying system role '#{value}'" features = raw_roles.find { |r| r["id"] == value } @@ -118,7 +116,6 @@ def store self.class.original_role_id = value end - private def raw_roles