lib/heroku/api/processes.rb in heroku-api-0.3.11 vs lib/heroku/api/processes.rb in heroku-api-0.3.12
- old
+ new
@@ -71,7 +71,19 @@
:method => :put,
:path => "/apps/#{app}/workers",
:query => {'workers' => workers}
)
end
+
+ # PUT /apps/:app/formation
+ def put_formation(app, options)
+ options.each { |process, size| options[process] = {'size' => size} }
+ request(
+ :body => Heroku::API::OkJson.encode(options),
+ :expects => 200,
+ :method => :put,
+ :path => "/apps/#{app}/formation"
+ )
+ end
+
end
end