Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.







Description
This pull request contains a series of updates and improvements across the
infra-serverserver-ctl-cookbooks, focusing on code modernization, bug fixes, and improvements to code clarity and maintainability. The most significant changes include updating Ruby version requirements, fixing file path and method usage for compatibility and correctness, and cleaning up code to use more idiomatic Ruby patterns.Build and Dependency Updates
.github/workflows/ctl-cookbook-testing.yml.github/codeql-action/upload-sarifaction from v1 to v2 in.github/workflows/brakeman-analysis.yml.Code Modernization and Cleanup
.firstinstead of[0],.empty?instead of.zero?, and.one?instead of.count == 1) in multiple library and recipe files for better readability and maintainability.require_relativestatements to use a more consistent and modern style (removed leading./) in several library files for improved compatibility.Bug Fixes and Correctness
.firstinstead of[0]for arrays, using.to_sfor string conversion, and fixing regular expression matches).recipes/config.rbfor more robust configuration handling.Minor Cleanup
These changes collectively improve code quality, future-proof the cookbooks, and address several minor bugs and inconsistencies.
[Please describe what this change achieves]
Issues Resolved
[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]
Check List