8000 GitHub - freesteph/rubingo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

freesteph/rubingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubingo : a Ruby wrapper around the Scalingo API

Description

This simple Ruby script started as a wrap around the Scalingo API to investigate and report on build times.

The native Scalingo CLI also provides duration data but in ASCII format which requires serious grep/awk skills to parse. It’s also a lot more fun in Ruby.

Getting started

  1. get yourself a Scalingo API token;
  2. put it into a SCALINGO_API_TOKEN environment variable;
  3. use ./bin/rubingo token to get an exchange token;
  4. explore ./bin/rubingo --help.

Example

export SCALINGO_API_TOKEN=my token

./bin/rubingo token # grab and write an exchange token in .env

./bin/rubingo repl betagouv-site # explore the betagouv-site resources

# if you app is hosted in the Secnum zone:
./bin/rubingo repl betagouv-prod --secnum

the above will drop you into a Ruby prompt with an api object instantiated with the right app:

api.deployments.last(10).map(&:duration)

api.collaborators.map(&:email)

Ressources available

  • deployments ;
  • collaborators.

PS: feel free to add new ones, it’s that easy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0