Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
FC001: Use strings in preference to symbols to access node attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Campi committed May 2, 2012
1 parent e9018ae commit 4729bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/gunicorn.rb
Expand Up @@ -26,7 +26,7 @@
attribute :host, :kind_of => String, :default => '0.0.0.0'
attribute :port, :kind_of => Integer, :default => 8080
attribute :backlog, :kind_of => Integer, :default => 2048
attribute :workers, :kind_of => Integer, :default => [node[:cpu][:total].to_i * 4, 8].min
attribute :workers, :kind_of => Integer, :default => [node['cpu']['total'].to_i * 4, 8].min
attribute :worker_class, :kind_of => [String, Symbol], :default => :sync
attribute :worker_connections, :kind_of => Integer, :default => 1000
attribute :max_requests, :kind_of => Integer, :default => 0
Expand Down

0 comments on commit 4729bcb

Please sign in to comment.