EncryptedSecrets.Helpers (encrypted_secrets v0.2.3) View Source

Contains helper methods

Link to this section Summary

Functions

Appends a given file to .gitignore

Takes a map with string keys and recursively converts the keys to atoms. DO NOT USE ON USER-PROVIDED INPUT

Link to this section Functions

Link to this function

append_to_gitignore(file_to_ignore)

View Source

Appends a given file to .gitignore

Returns :ok | {:error, error}

Takes a map with string keys and recursively converts the keys to atoms. DO NOT USE ON USER-PROVIDED INPUT

Returns {:ok, map}

Examples

iex> string_key_map = %{"foo" => %{"bar" => "baz"}}
iex> Helpers.convert_map_keys({:ok, string_key_map})
{:ok, %{foo: %{bar: "baz"}}}