Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qs-heroku-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qs-heroku-client

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Qs::Heroku::Client

A library to use Heroku's Platform API.

Currently only retrieving and scaling dynos is supported!

Setup a client

Create a client using your Heroku email address and the corresponding API token.

require 'qs/heroku/client'
client = Qs::Heroku::Client.new('your-heroku-mail@example.com', 'your-heroku-api-token')

Retrieve the current setup of an app

You can see the number and size of all dyno types (web, worker, etc) via the formation of an app.

app = client.app('your-app-name')
app.formation
# => {"web"=>{"quantity"=>2, "size"=>"1x"}, "worker"=>{"quantity"=>1, "size"=>"1x"}, "console"=>{"quantity"=>0, "size"=>"1x"}, "rake"=>{"quantity"=>0, "size"=>"1x"}}

Scale dynos of an app

You can scale the number of dynos and change the dyno size of a certain type of process.

# scales the web process to 2 dynos of the size 1X
app.scale('web', 2, '1x')
# => {"web"=>{"quantity"=>2, "size"=>"1x"}, "worker"=>{"quantity"=>1, "size"=>"1x"}, "console"=>{"quantity"=>0, "size"=>"1x"}, "rake"=>{"quantity"=>0, "size"=>"1x"}}

FAQs

Package last updated on 02 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc