We created a set of ActiveResource
wrappers to make your work with the Beanstalk API a bit easier.
First enable API access in your account settings. Only account owner can do that.
Then install Beanstalk gem on your machine:
gem install beanstalkapp
Here’s a quick example on how to get started with the gem right away:
require 'rubygems'
require 'beanstalkapp'
Beanstalk::API::Base.setup(
:domain => "your_beanstalk_account_subdomain",
:login => "login",
:password => "password"
)
Beanstalk::API::Account.find
You can get the source code of the gem on our Github account.