README.md in platform-api-3.3.0 vs README.md in platform-api-3.5.0
- old
+ new
@@ -157,11 +157,11 @@
```
Let's add a Heroku PostgreSQL database to our app now:
```ruby
-heroku.addon.create('floating-retreat-4255', {'plan' => 'heroku-postgresql:dev'})
+heroku.addon.create('floating-retreat-4255', {'plan' => 'heroku-postgresql:hobby-dev'})
=> {"config_vars"=>["HEROKU_POSTGRESQL_COBALT_URL"],
"created_at"=>"2014-03-13T00:28:55Z",
"id"=>"79a0c826-06be-4dcd-8bb5-f2c1b1bc2beb",
"name"=>"heroku-postgresql-cobalt",
"plan"=>
@@ -234,41 +234,41 @@
=> [{"command"=>"coffee index.coffee",
"created_at"=>"2014-03-13T04:13:37Z",
"id"=>"f682b260-8089-4e18-b792-688cc02bf923",
"type"=>"web",
"quantity"=>1,
- "size"=>"1X",
+ "size"=>"Standard-1X",
"updated_at"=>"2014-03-13T04:13:37Z"}]
```
Let's change `web` process to run on a 2X dyno:
```ruby
heroku.formation.batch_update('floating-retreat-4255',
{"updates" => [{"process" => "web",
"quantity" => 1,
- "size" => "2X"}]})
+ "size" => "Standard-2X"}]})
=> [{"command"=>"coffee index.coffee",
"created_at"=>"2014-03-13T04:13:37Z",
"id"=>"f682b260-8089-4e18-b792-688cc02bf923",
"type"=>"web",
"quantity"=>1,
- "size"=>"2X",
+ "size"=>"Standard-2X",
"updated_at"=>"2014-03-13T04:22:15Z"}]
```
We could have included a number of different kinds of processes in the last
command. We can use the singular update action to modify a single formation
type:
```ruby
-heroku.formation.update('floating-retreat-4255', 'web', {"size" => "1X"})
+heroku.formation.update('floating-retreat-4255', 'web', {"size" => "Standard-1X"})
=> {"command"=>"coffee index.coffee",
"created_at"=>"2014-03-13T04:13:37Z",
"id"=>"f682b260-8089-4e18-b792-688cc02bf923",
"type"=>"web",
"quantity"=>1,
- "size"=>"1X",
+ "size"=>"Standard-1X",
"updated_at"=>"2014-03-13T04:24:46Z"}
```
Hopefully this has given you a taste of how the client works. If you have
questions please feel free to file issues.