You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/lib/asciinema/asciicasts/snapshot_updater.ex

11 lines
344 B
Elixir

defmodule Asciinema.Asciicasts.SnapshotUpdater do
alias Asciinema.Asciicasts.Asciicast
@doc "Generates poster for given asciicast"
@callback update_snapshot(asciicast :: %Asciicast{}) :: :ok | {:error, term}
def update_snapshot(asciicast) do
Application.get_env(:asciinema, :snapshot_updater).update_snapshot(asciicast)
end
end