Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Heroku API client for node

tag: 0.0.6

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 misc Added monkey. January 20, 2012
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore Initial commit. January 19, 2012
Octocat-spinner-32 Cakefile
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

Heroku client API for node

Welcome to this (almost) untested, mostly rip-off of heroku/heroku.rb.

This module provides exactly the same API as heroku's official client. Each function has been carefully fed to monkeys who, through patience and understanding, had been trained to translate basic ruby into coffee script.

A monkey in action
A monkey in action

Those monkeys' education cost a lot so we could not afford tests for this code. However, we guarantee that no animal was hurt while preparing this module.

How to use?

API exported by this module is exactly the same as API exported by heroku/heroku.rb. Yes, this also means that some variables are not camelCased. We apologize in advance for this inconvenience and, most regretfully, have to deny any liability regarding any possible eye injury while inspecting this code.

That being said, here's a sample use, which is also the only one actually tested:

heroku = require("heroku");
client = new heroku.Heroku({key: "deadbeef"});
client.get_releases("my_app", function (error, result) {
  (...your code here...)
});

For those who prefer to have it with more caffeine, here's the same example in coffee-script:

{Heroku} = require "heroku"
client   = new Heroku
  key : "deadbeef"

client.get_releases "my_app", (error, result) ->
  (..your code here..)
Something went wrong with that request. Please try again.