Prex v0.0.2 Prex.AstFile View Source

Documentation for AstFile.

Link to this section Summary

Functions

Returns the HOST of api. nil if nothing

Returns ast file resourceGroups as an Enum or nil if not exists

Parses an ast json of an ap blueprint into a map

Link to this section Functions

Link to this function get_host(map) View Source
get_host(Map.t) :: String.t | nil

Returns the HOST of api. nil if nothing.

Examples

iex> Prex.parse_file("test.json") |> Prex.get_host
"http://sample.pandurangpatil.com"
Link to this function get_resource_groups(map) View Source
get_resource_groups(Map.t) :: Enum.t | nil

Returns ast file resourceGroups as an Enum or nil if not exists.

Link to this function parse_file!(file_name) View Source
parse_file!(String.t) :: Poison.Parser.t | no_return

Parses an ast json of an ap blueprint into a map.