Permalink
Browse files

scale dynos using new heroku gem

  • Loading branch information...
1 parent 4b72e2f commit c5aecc8f1148d892525f597320886bba2a3903b3 @herval committed Mar 22, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Rakefile
  2. +2 −2 lib/heroku/autoscale.rb
View
@@ -50,8 +50,8 @@ begin
s.add_development_dependency 'rspec', '~> 2.0.0'
s.add_dependency 'eventmachine'
- s.add_dependency 'heroku', '~> 1.9'
- s.add_dependency 'rack', '~> 1.0'
+ s.add_dependency 'heroku', '> 2.2'
+ s.add_dependency 'rack', '> 1.4'
end
Jeweler::GemcutterTasks.new
rescue LoadError
@@ -5,7 +5,7 @@
module Heroku
class Autoscale
- VERSION = "0.2.2"
+ VERSION = "0.3.0"
attr_reader :app, :options, :last_scaled
@@ -77,7 +77,7 @@ def queue_wait(env)
end
def set_dynos(count)
- heroku.set_dynos(options[:app_name], count)
+ heroku.ps_scale(options[:app_name], :type => 'web', :qty => count)
@last_scaled = Time.now
end

0 comments on commit c5aecc8

Please sign in to comment.