Skip to content

Conversation

@yanaddn
Copy link

@yanaddn yanaddn commented Feb 4, 2026

Live on noble.env.yola.net

@yanaddn yanaddn changed the title Adjust varnish cookbook feat: adjust varnish cookbook Feb 4, 2026

matches = cmd_stdout.match(/varnish-([0-9]\.[0-9])/)
version_found = matches && matches.first && matches[1]
version_found = matches && matches[1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since matches[1] existence implies matches[0] (first) existence, this cleanup makes sense. Was this triggered by a specific bug (like a NoMethodError), or just general refactoring?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while running hostingedge cookbook, it was causing errors in varnish recipes NoMethodError: undefined method first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants