Skip to content

Commit

Permalink
lint this file
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Apr 12, 2024
1 parent 6a0b99a commit 7dfc9c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nginx_stage/lib/nginx_stage/session_finder.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# frozen_string_literal: true

module NginxStage
module SessionFinder
def session_count(user)
`ps -o cmd -u #{user}`.split("\n").select do |command|
command.match?(/Passenger [\w]+App:/)
command.match?(/Passenger \w+App:/)
end.count
end
end
end
end

0 comments on commit 7dfc9c6

Please sign in to comment.