Dawn-API

Dependency Status Gem Version Code Climate Inch-CI

Ruby API for Dawn

Installation

gem install dawn-api

Building

gem pack dawn-api.gem

Documentation:

Rubydoc

API Reference

Influential ENV variable

VAR API default Description
DAWN_HOST dawn.dev Main hostname
DAWN_SCHEME http
DAWN_API_HOST api.dawn.dev Dawn API hostname, if not given, api.$DAWN_HOST is used
DAWN_GIT_HOST dawn.dev Target for git push dawn, if not given, $DAWN_HOST is used
DAWN_LOG_HOST dawn.dev:8001 Dawn logs hostname, if not given, $DAWN_HOST:8001 is used

What is this?

This is the ruby API interface for Dawn,

  • It is not a standalone gem.
  • It requires a dawn server.
  • It is not a CLI, look at Dawn-CLI instead

Usage

One day I'll write this properly, however for now:

Dawn.authenticate
my_app = Dawn::App.create
my_app.domains.all
my_app.gears.restart