Packages

Google Cloud for Elixir. Friendly set of wrappers for Google Cloud Platform API's.

Current section

Files

Jump to
gcloudex lib gcloudex.ex
Raw

lib/gcloudex.ex

defmodule GCloudex do
@moduledoc """
Set of wrappers for Google Cloud Platform's services API's.
"""
@doc """
Returns the Google Project ID specified in the creds.json file in the configs.
"""
@spec get_project_id :: binary
def get_project_id do
:goth
|> Application.get_env(:json)
|> Poison.decode!
|> Map.get("project_id")
end
end