lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.15 vs lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.16

- old
+ new

@@ -27,13 +27,14 @@ client.ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => nw) end end rescue end - end - def self.workers - client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ } + def self.workers + client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ } + end + end end end end