Skip to content
Browse files

Use the correct commands

  • Loading branch information...
1 parent fdde293 commit 8e2206cbd53c6fae27a8637347795806e65dade4 @davidakachaos davidakachaos committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/workless/scalers/heroku_cedar.rb
View
4 lib/workless/scalers/heroku_cedar.rb
@@ -7,11 +7,11 @@ class HerokuCedar < Base
extend Delayed::Workless::Scaler::HerokuClient
def self.up
- client.post_ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => self.workers_needed) if self.workers < self.workers_needed
+ client.post_ps_scale(ENV['APP_NAME'], 'worker', self.workers_needed) if self.workers < self.workers_needed
end
def self.down
- client.post_ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => self.min_workers) unless self.workers == self.min_workers or self.jobs.count > 0
+ client.post_ps_scale(ENV['APP_NAME'], 'worker', self.min_workers) unless self.workers == self.min_workers or self.jobs.count > 0
end
def self.workers

0 comments on commit 8e2206c

Please sign in to comment.
Something went wrong with that request. Please try again.