Permalink
Browse files

shorten

  • Loading branch information...
1 parent cfc0449 commit d0cdf1216893b371eacf7c7a691c8d2ed8f3cb10 @hsbt committed Mar 5, 2012
@@ -13,9 +13,9 @@ def run(type = :ps)
when :workers then client.set_workers(config['app'], qty)
end
else
- config.keys.each do |process|
- if qty = config[process][run_at]
- client.ps_scale(config['app'], :type => process, :qty => qty)
+ config.keys.each do |ps|
+ if qty = config[ps][run_at]
+ client.ps_scale(config['app'], :type => ps, :qty => qty)
end
end
end
@@ -11,7 +11,7 @@ namespace :heroku do
end
desc 'scaling heroku process'
- task :process do
+ task :ps do
HerokuScaleScheduler::Client.new.run
end
end

0 comments on commit d0cdf12

Please sign in to comment.