Skip to content

Commit

Permalink
Revising contents
Browse files Browse the repository at this point in the history
  • Loading branch information
skierkowski committed Nov 26, 2014
1 parent 5d3e2cc commit c66a2f8
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions source/connectors/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ category: Connectors
Github requires an API Key (api_key) to be defined in your credentials.yml file. To get the API key go to your [Account Page in Heroku](https://dashboard.heroku.com/account) and generate an "API Key". Copy the new key and paste it into your credentials.yml file.

**credentials.yml**

```yaml
heroku:
api_key: 4686b1488574a768a8a8d
Expand All @@ -24,13 +25,24 @@ content | | The reference to the contents that is to be deployed. The contents i


## Output prameters
- **release**: Release number used to track in Heroku

```ruby
{
"created_at": "2014-11-25T04:44:13Z",
"description": "Deploy",
"id": "48ce9058-ce59-490c-b27b-ad4290617129",
"slug": "",
"updated_at": "2014-11-25T04:44:13Z",
"user": "",
"version": 389
}
```

## Example
```ruby
listen 'github::push', repo:'skierkowski/hello#master' do |github_info|
run 'heroku::deploy', app:'hello-frank', content:github_info.content do |deploy_info|
info 'Deployment is complete'
run 'heroku::deploy', app:'hello-frank', content:github_info.content do |deploy|
info "Deployment completed at #{deploy.created_at}, version: #{deploy.version}"
end
end
```

0 comments on commit c66a2f8

Please sign in to comment.