View Source ExStatichostEu (ex_statichosteu v1.0.0)

An official REST API client for ExStatichostEu.

Summary

Functions

Add a website to your account.

Trigger a build for an existing website. This will deploy the latest changes.

Functions

add_site(auth, request)

Add a website to your account.

Examples

iex> auth = %ExStatichostEu.Model.Auth{team_id: "team_id", bearer_token: "bearer_token"}
iex> add_site = %ExStatichostEu.Model.AddSite{name: "site-name", repository: "ssh://git@....git"}
iex> {:ok, %{"deploy_key" => deploy_key}} = ExStatichostEu.add_site(auth, add_site)

trigger_build(site_name)

Trigger a build for an existing website. This will deploy the latest changes.

More information can be found in the docs.

Examples

iex> {:ok, resp} = ExStatichostEu.trigger_build("test-site")