Skip to content

Commit 509d2cf

Browse files
ndbroadbentclaude
andcommitted
remove Puma::CLI check - it's defined when gem is installed, not just running
Puma::CLI is defined when the puma gem is installed, which causes false positives during rake tasks. Puma::Server is only defined when actually running as a server. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f745464 commit 509d2cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/log_struct/concerns/configuration.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def console_process?
132132
sig { returns(T::Boolean) }
133133
def server_process?
134134
return true if logstruct_server_mode?
135-
# Check for web servers - the module/gem is loaded at require time
136-
return true if defined?(::Puma::CLI) # puma CLI is defined when running `puma` command
137-
return true if defined?(::Puma::Server) # or Puma::Server if already loaded
135+
return true if defined?(::Puma::Server)
138136
return true if defined?(::Unicorn::HttpServer)
139137
return true if defined?(::Thin::Server)
140138
return true if defined?(::Falcon::Server)

0 commit comments

Comments
 (0)