Packages

A wrapper library for the docker api

Current section

Files

Jump to
pier lib openapi tasks decode.ex
Raw

lib/openapi/tasks/decode.ex

defmodule Pier.OpenApi.Tasks.Decode do
def build(blueprint, opts) do
{:ok, content} = Keyword.get(opts, :path)
|> File.read!()
|> Poison.decode()
{:ok, %{blueprint | contents: content}}
end
end