From 4a8c172a3c839f1891ede6610949310c1a02203e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 22 Apr 2024 13:56:41 +0100 Subject: [PATCH] Linting style fixes --- cookbooks/fail2ban/recipes/default.rb | 2 +- cookbooks/php/attributes/default.rb | 5 ++--- cookbooks/ruby/attributes/default.rb | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cookbooks/fail2ban/recipes/default.rb b/cookbooks/fail2ban/recipes/default.rb index 5a7b159a4..97b54c48c 100644 --- a/cookbooks/fail2ban/recipes/default.rb +++ b/cookbooks/fail2ban/recipes/default.rb @@ -25,7 +25,7 @@ ruby-webrick ] -if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04 ) +if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04) package "python3-inotify" else package "gamin" diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index e1da79484..8b2b17d2e 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -1,7 +1,6 @@ -default[:php][:version] = case - when platform?("debian") +default[:php][:version] = if platform?("debian") "8.2" # PHP version for Debian - when platform?("ubuntu") + elsif platform?("ubuntu") case node[:lsb][:release].to_f when 24.04 "8.3" # PHP version for Ubuntu 24.04 diff --git a/cookbooks/ruby/attributes/default.rb b/cookbooks/ruby/attributes/default.rb index ed601e7bc..14bb604f5 100644 --- a/cookbooks/ruby/attributes/default.rb +++ b/cookbooks/ruby/attributes/default.rb @@ -1,7 +1,6 @@ -default[:ruby][:version] = case - when platform?("debian") +default[:ruby][:version] = if platform?("debian") "3.1" # ruby version for Debian - when platform?("ubuntu") + elsif platform?("ubuntu") case node[:lsb][:release].to_f when 24.04 "3.2" # ruby version for Ubuntu 24.04